getting test case 0 wrong and test case 2 run error
Array wave print

1 Like
look on this one also:))
please tell the reason for m+1 and n+1.
thanks for help 
@Rakshitgarg99
if we declare an array of size n then maximum index we can acces is n-1 right?.
Now in your case u want to access index n,m which will possible only when u declare array with size 1 bigger then the index u accessing .(i.e arr[m+1][n+1]
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.

