From b41cffea0f5d6ff893743257f15f1be33282f8c8 Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Fri, 29 Jun 2018 14:44:11 +0300 Subject: [PATCH] Add permutations/combinations cheat sheets. --- src/algorithms/sets/combinations/README.md | 17 ++++++++++++++++- src/algorithms/sets/permutations/README.md | 17 ++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) 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)