Skip to content

Commit 8575f13

Browse files
committed
Fix tiny text tweaks
1 parent e4b0d61 commit 8575f13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Combinatorics/README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,8 @@ As there're the divisors for numbers from '1...k' among 'k' consecutive numbers,
391391
Here's how you can use it:
392392

393393
```swift
394-
quickbinomialCoefficient(30, 15) // prints 155117520
395-
quickbinomialCoefficient(8, 2) // prints 28
394+
quickBinomialCoefficient(30, 15) // prints 155117520
395+
quickBinomialCoefficient(8, 2) // prints 28
396396
```
397397

398398
You may wonder what the point is in calculating these permutations and combinations, but many algorithm problems are really combinatorics problems in disguise. Often you may need to look at all possible combinations of your data to see which one gives the right solution. If that means you need to search through `n!` potential solutions, you may want to consider a different approach -- as you've seen, these numbers become huge very quickly!

0 commit comments

Comments
 (0)