You have unread notifications. Click here.

Maze DP Code

Loading ...
Start Coding
#include <iostream>
#include <algorithm>
using namespace std;
int x[4][4]={{0 ,0 ,0 ,0},
---{0 ,10,15,1},
---{0 ,10,1 ,1},
---{0 ,10,10,10}};
int main() {
-for(int i=1; i<=3; i++)
--for(int j=1; j<=3; j++)
---x[i][j] += max(x[i-1][j], x[i][j-1]);
-cout<< x[3][3] <<endl;


English Version


Answer the following questions according to what you learned from the video.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Comments & Feedback

ملحوظة يتم مراجعة التعليقات قبل ظهورها من قبل الإدارة. رجاء عدم كتابة نفس التعليق أكثر من مرة.
Back to Course