Advertisement
Patresss

Untitled

Jun 15th, 2014
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.14 KB | None | 0 0
  1. for i<-0 to n
  2.   for j<-0 to min(i,k)
  3.    if(j == 0 || j == i)
  4.     B[i][j] = 1
  5.    else
  6.     B[i][j] = B[i-1][j-1] + B[i-1][j]
  7. return B[n][k]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement