in grid problem ,in code implementation
dp[r][0]= dp[0][r-1]+ grid[r][0] should be
dp[r][0]= dp[r-1][0]+ grid[r][0] or not??
Dynamic Programming (grid problem)
hey @vermasehaj98, if your query is resolved. Please mark this doubt as resolved and rate me on the basis of your experience.
rating option will appear when to mark this doubt as resolved
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.