Hi Coding Block,
I was watching video “Max Sum Submatrix In Row And Col”.
The code which you had implemented is wrong.
this is your code go to this link:
see line no. 49 and 26
for(int j = 0; j < n; j++)
here you have written j < n;
this is wrong.
It should be j < m;
I am correct the code. please see this link
(https://ide.codingblocks.com/s/578703) and match with your code .
Sir, you had done same mistake in previous problem(“Submatrix Sum Query”).
Thank in advance
Deepanjali Kumari