Update snippets/binomial_coefficient.md
This commit is contained in:
@ -3,7 +3,7 @@ title: binomial_coefficient
|
|||||||
tags: math,beginner
|
tags: math,beginner
|
||||||
---
|
---
|
||||||
|
|
||||||
Return the number of ways to choose `k` items from `n` items without repetition and without order.
|
Returns the number of ways to choose `k` items from `n` items without repetition and without order.
|
||||||
|
|
||||||
- Use `math.comb()` to calculate the binomial coefficient.
|
- Use `math.comb()` to calculate the binomial coefficient.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user