diff --git a/src/algorithms/sets/combinations/README.md b/src/algorithms/sets/combinations/README.md index 2a7e8bb4..30243b86 100644 --- a/src/algorithms/sets/combinations/README.md +++ b/src/algorithms/sets/combinations/README.md @@ -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 + +![Permutations Cheat Sheet](https://cdn-images-1.medium.com/max/2000/1*JNK-n0Pt0Vbxk0lxVpgT5A.png) + +Combinations cheat sheet + +![Combinations Cheat Sheet](https://cdn-images-1.medium.com/max/2000/1*7cFRn8jW4g_91YgDAbmxRQ.png) + +Permutations/combinations algorithm ideas. + +![Algorithms Idea](https://cdn-images-1.medium.com/max/2000/1*vLsSsZMnesCFPCYTYMbxrQ.png) + ## 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) diff --git a/src/algorithms/sets/permutations/README.md b/src/algorithms/sets/permutations/README.md index 5e1fba06..8864af72 100644 --- a/src/algorithms/sets/permutations/README.md +++ b/src/algorithms/sets/permutations/README.md @@ -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 + +![Permutations Cheat Sheet](https://cdn-images-1.medium.com/max/2000/1*JNK-n0Pt0Vbxk0lxVpgT5A.png) + +Combinations cheat sheet + +![Combinations Cheat Sheet](https://cdn-images-1.medium.com/max/2000/1*7cFRn8jW4g_91YgDAbmxRQ.png) + +Permutations/combinations algorithm ideas. + +![Algorithms Idea](https://cdn-images-1.medium.com/max/2000/1*vLsSsZMnesCFPCYTYMbxrQ.png) + ## 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)