I am not able to understand what is wrong with my approach, all the testcases are giving the wrong answer. Here is the link to the code:-https://ide.codingblocks.com/s/80161
Arrays-Wave print Column Wise question
@quizzerkumar hey Nikhil you did a small mistake.
try to run on below testcase :
4 5
11 12 13 14 15
21 22 23 24 25
31 32 33 34 35
41 42 43 44 45
and see what’s wrong with your code.
If you still don’t get then i will surely help.
Thank you sir. I understood my mistake
1 Like
@quizzerkumar Great Nikhil. Whenever your code fails on some testcases. Try to dry run your code on different inputs this will help you to find your mistake and help you to become a better programmer.