Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. int algo(int a, int b, int n)
  2.  
  3. if a >b ou a==0 ou b ==n-1 ## il faut considerer a comme i et b comme j
  4. return 0
  5. else
  6. for i in 1..n
  7. for j in 1..n
  8. return t[i][j]+ max (algo(i+1,j+1, n), algo(i-1,j,n))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement