1 test case failing

sol: https://ide.codingblocks.com/s/390604
prob: https://hack.codingblocks.com/app/contests/1975/410/problem

Hello @raghav007 this is the corrected code:


i have commented what you should add.
if you have any doubt you can ask here:
Happy Learning!!

can you give an example of a test case where my previous code was failing.

Hello @raghav007 in the sample test case dry run your code for 3X4 size matrix.
i.e
3 4
11 12 13 14
21 22 23 24
31 32 33 34
41 42 43 44
you will get to see
run your code for this test case you will see what is the error.

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.