Doubt in intitlaizing DP array

At line no 15, at time 12.40 in video, it seems the dp array indices should be swapped. Deepak bhaiya, can you please explain again if it should be dp[r-1][0] or dp[0][r-1].

TIA

We are taking ar[row][col]
So definately it should be ar[row-i][col-j] kind of thing.

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.