mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-07-09 04:08:42 +08:00
Add permutations/combinations cheat sheets.
This commit is contained in:
@ -50,6 +50,21 @@ Where `n` is the number of things to choose from, and we
|
||||
choose `r` of them. Repetition allowed,
|
||||
order doesn't matter.
|
||||
|
||||
## Cheat Sheets
|
||||
|
||||
Permutations cheat sheet
|
||||
|
||||

|
||||
|
||||
Combinations cheat sheet
|
||||
|
||||

|
||||
|
||||
Permutations/combinations algorithm ideas.
|
||||
|
||||

|
||||
|
||||
## References
|
||||
|
||||
[Math Is Fun](https://www.mathsisfun.com/combinatorics/combinations-permutations.html)
|
||||
- [Math Is Fun](https://www.mathsisfun.com/combinatorics/combinations-permutations.html)
|
||||
- [Permutations/combinations cheat sheets](https://medium.com/@trekhleb/permutations-combinations-algorithms-cheat-sheet-68c14879aba5)
|
||||
|
@ -37,6 +37,21 @@ For example the the lock below: it could be `333`.
|
||||
n * n * n ... (r times) = n^r
|
||||
```
|
||||
|
||||
## Cheat Sheets
|
||||
|
||||
Permutations cheat sheet
|
||||
|
||||

|
||||
|
||||
Combinations cheat sheet
|
||||
|
||||

|
||||
|
||||
Permutations/combinations algorithm ideas.
|
||||
|
||||

|
||||
|
||||
## References
|
||||
|
||||
[Math Is Fun](https://www.mathsisfun.com/combinatorics/combinations-permutations.html)
|
||||
- [Math Is Fun](https://www.mathsisfun.com/combinatorics/combinations-permutations.html)
|
||||
- [Permutations/combinations cheat sheets](https://medium.com/@trekhleb/permutations-combinations-algorithms-cheat-sheet-68c14879aba5)
|
||||
|
Reference in New Issue
Block a user