Failing Test Cases

The given code doesn’t work for the following Test Cases :
Number of Rows = 2
Number of Columns = 3
Matrix = { { 5 , 11 , 30 } ,
{ 5 , 19 , 19 } ,
}

Hi Pranshu,
u can refer my code --> https://ide.codingblocks.com/s/640481
it works for the test case u provided…

i hope it is clear now??

Got it !
It works for all cases , Thanks !
However , following the video I was unable to get the intution behind this solution. .

I understand what u are saying… whenever u are struck somewhere try to dry run the test cases… and things will become clear with more and more practise only…

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.