Skip to content

PashalisTsirts/Binomial-Coefficient---Top_down-Bottom_up-Implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

The value of C(n, k) can be recursively calculated using the formula for Binomial Coefficients.

C(n, k) = C(n-1, k-1) + C(n-1, k), C(n, 0) = C(n, n) = 1

The simple recursive implementation recalculates the same subproblems. This can be avoided by using dynamic programming: Top_down & Bottom_up Implementation

About

Binomial Coefficient Problem - A Dynamic Programming based solution

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages