why u take i+1 and j+1 for x why x=i* j it’s also right why u take x=(i+1)*(j+1) they are not part of the left corner ?
Sum of submatrix
@Anusree_Dey hey,we have taken i +1 and j+1 as these are no of rows and column in submatrix from 0,0 to i,j as indexing is 0 based so no of rows and columns in that submatrix will be i+1 and j+1 respectively ,hope you get it
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.
Hey, can you send code for Sum of submatrix with approach one