You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As there're the divisors for numbers from '1...k' among 'k' consecutive numbers, what is exactly we've got in the numerator of our fast formula every time we devide 'result' by '(i + 1)' we won't have a real number.
390
390
391
-
Now you can calculate `C(30, 15)` without any problems:
391
+
Here's how you can use it:
392
392
393
393
```swift
394
394
quickbinomialCoefficient(30, 15) // prints 155117520
0 commit comments