Is this code for sum of all possible submatrix? or just sum of all the elements?
What this video is telling about?
Then why i am getting wrong answer?
input is:-
a 3*3 matrix
1 1 1
1 1 1
1 1 1
answer is coming 49 but the correct answer should be67
intialise ur bi with li and bj with lj.
because 1 X 1 is also a valid submatrix.
still it is giving wrong answer
what answer it is giving ?
100 is the answer it is giving.
it is correct answer
But when i am calculating mannualy it is coming more than 100.
it is 100 ,i have verified.
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.