i think my code is right and i am getting correct output successfully but still i failed all the test cases and i didn’t even pass a single test case .please clear my doubt
Wave print column wise
Hello @SARTHAK,
Your logic is correct but there is difference in the output format of your code and what it is required by the question.
Sample test case:
4 4
11 12 13 14
21 22 23 24
31 32 33 34
41 42 43 44
Your Output:
11, 21, 31, 41, 42, 32, 22, 12, 13, 23, 33, 43, 44, 34, 24, 14,
Expected Output:
11, 21, 31, 41, 42, 32, 22, 12, 13, 23, 33, 43, 44, 34, 24, 14, END
Can you see the difference?
Correct it and it will pass all the test cases.
Hope, this would help.
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.