I didn’t understand the stated problem. What are we trying to accomplish or solve here? Also are there any real life applications of such coding problems…i’d like an example.
Problem is unclear
hello @vaani787
in this question u r given a matrix.
and then u are asked some queries in each queries u need print the sum of small submatrix whose upper left and bottom right coordinates are given .
for this problem , u can treat the whole matrix as a godown, where each cells of matrix is representing a room where u have stored some items.
now u want to know total count of items stored in rooms where coordinate of starting room(say a11) and ending room(a44) are given.
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.