Roe wise and column wise array problem

can u please explain me in the code how the values of row and column wise add like which column is running and along with which box sum is adding

hello @TheSourabh

image

check this .
in line 18 ->
we are iterating columnwise and adding result of previous row to current cell to get the overall sum of column till current cell.

in line 22->
we are iterating columnwise and adding result of previous row to current cell to get the overall prefix sum of till current cell.

for more details watch ur course content ,it is covered there

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.