Please tell what is missing in my code
Half test cases Failed
Hey @Abhay-Chauhan-1546158815521966 for test case:
2 3
1 2 3
4 5 6
Expected output is:
1, 4, 5, 2, 3, 6, END
Your’s is giving:
1, 4, 5, 2, 3, 6, -338038213, 4, END
I guess this will help you in understanding your mistake, if not do let me know i will help you with the code.
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.