What the heck is the problems with your test scripts ,, i did what you asked in input and provided u a correct output, this is the problem of wave print , do u want to me to copy method u taught, cause i aint doin it

hi @nmoudgil_be19 if your code is failing test cases it means something is wrong with your code, not the test cases. No one is telling you to copy any code. Correct logic is what matters and there can be multiple ways to solve a problem.

my logic is correct, i request u to check it

@nmoudgil_be19 your code is not even matching the sample output… at least check for that. Observe that there is a space present after each comma which you did not add.

even with the space its not accepting, i accidently sent u my prototype

@nmoudgil_be19
i’m sending you one of the test cases for which your code is not working (not a spacing issue this time). See for yourself.

2 3
1 2 3 
4 5 6 

okay, i understood, i just made my own logic, and it worked, thanks

1 Like

@nmoudgil_be19 don’t forget to mark your doubt as resolved!

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.