mine code is running for two case but for two cases it is showing wrong answer can u plz tell me where is the problem…
mine code is https://onlinegdb.com/B1riehVFS
💡 Arrays-Sum Of Two Arrays
Hello @jaankita2000,
Your code is failing for the test cases like:
5
3 4 5 6 7
5
9 1 0 2 9
Expected Output:
1, 2, 5, 5, 9, 6, END
Your Output:
2, 5, 5, 9, 6, END
Hope, this would help.
Give a like, if you are satisfied.
1 more test case is failing which one is that
please tell the test case which is failing
1 more test case is failing which one is that
it is my code please click on first line to go to code
Hey @jaankita2000,
You have not yet resolved the problem that i explained in my previous reply, completely.
Example:
3
4 2 3
4
9 8 7 6
Expected Output:
1, 0, 2, 9, 9, END
Your Output:
0, 2, 9, 9, END
Also, it failing for the test case:
1
1
1
1
Expected Output:
2, END
Your Output:
0, 2, END
Give a like if you are satisfied.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.