THIS CODE IS JUST FOR SUFFIX SUM MATRIX . PLZ CORRECT THE ERRORS

Dhruv the logic you are using is not correct, https://www.geeksforgeeks.org/prefix-sum-2d-array/ this is the editorial and I would suggest you to read and apply this as a logic.

The code uh sent me is for prefix sum matrix nd which i sent you to correct is suffix sum matrix

Suffix sum matrix is also same as that of prefix. Try to understand from it, if you still fails you can ask it from me again. But at least try :slight_smile:

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.