mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Add typng to binomial_coefficient.py (#9480)
This commit is contained in:
parent
73118b9f67
commit
95345f6f5b
@ -1,4 +1,4 @@
|
||||
def binomial_coefficient(n, r):
|
||||
def binomial_coefficient(n: int, r: int) -> int:
|
||||
"""
|
||||
Find binomial coefficient using pascals triangle.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user