Update Permutation and Combination cheatsheets. (#963)
@ -50,19 +50,17 @@ Where `n` is the number of things to choose from, and we
|
|||||||
choose `r` of them. Repetition allowed,
|
choose `r` of them. Repetition allowed,
|
||||||
order doesn't matter.
|
order doesn't matter.
|
||||||
|
|
||||||
## Cheat Sheets
|
## Cheatsheet
|
||||||
|
|
||||||
Permutations cheat sheet
|
![Permutations and Combinations Overview](./images/overview.png)
|
||||||
|
|
||||||
![Permutations Cheat Sheet](https://cdn-images-1.medium.com/max/2000/1*JNK-n0Pt0Vbxk0lxVpgT5A.png)
|
![Combinations overview](./images/combinations-overview.jpg)
|
||||||
|
|
||||||
Combinations cheat sheet
|
| | |
|
||||||
|
| --- | --- |
|
||||||
|
|![Combinations with repetition](./images/combinations-with-repetitions.jpg) | ![Combinations without repetition](./images/combinations-without-repetitions.jpg) |
|
||||||
|
|
||||||
![Combinations Cheat Sheet](https://cdn-images-1.medium.com/max/2000/1*7cFRn8jW4g_91YgDAbmxRQ.png)
|
*Made with [okso.app](https://okso.app)*
|
||||||
|
|
||||||
Permutations/combinations algorithm ideas.
|
|
||||||
|
|
||||||
![Algorithms Idea](https://cdn-images-1.medium.com/max/2000/1*vLsSsZMnesCFPCYTYMbxrQ.png)
|
|
||||||
|
|
||||||
## References
|
## References
|
||||||
|
|
||||||
|
After Width: | Height: | Size: 345 KiB |
After Width: | Height: | Size: 324 KiB |
After Width: | Height: | Size: 302 KiB |
BIN
src/algorithms/sets/combinations/images/overview.png
Normal file
After Width: | Height: | Size: 142 KiB |
@ -37,19 +37,17 @@ For example the the lock below: it could be `333`.
|
|||||||
n * n * n ... (r times) = n^r
|
n * n * n ... (r times) = n^r
|
||||||
```
|
```
|
||||||
|
|
||||||
## Cheat Sheets
|
## Cheatsheet
|
||||||
|
|
||||||
Permutations cheat sheet
|
![Permutations and Combinations Overview](./images/overview.png)
|
||||||
|
|
||||||
![Permutations Cheat Sheet](https://cdn-images-1.medium.com/max/2000/1*JNK-n0Pt0Vbxk0lxVpgT5A.png)
|
![Permutations overview](./images/permutations-overview.jpeg)
|
||||||
|
|
||||||
Combinations cheat sheet
|
| | |
|
||||||
|
| --- | --- |
|
||||||
|
|![Permutations with repetition](./images/permutations-with-repetitions.jpg) | ![Permutations without repetition](./images/permutations-without-repetitions.jpg) |
|
||||||
|
|
||||||
![Combinations Cheat Sheet](https://cdn-images-1.medium.com/max/2000/1*7cFRn8jW4g_91YgDAbmxRQ.png)
|
*Made with [okso.app](https://okso.app)*
|
||||||
|
|
||||||
Permutations/combinations algorithm ideas.
|
|
||||||
|
|
||||||
![Algorithms Idea](https://cdn-images-1.medium.com/max/2000/1*vLsSsZMnesCFPCYTYMbxrQ.png)
|
|
||||||
|
|
||||||
## References
|
## References
|
||||||
|
|
||||||
|
BIN
src/algorithms/sets/permutations/images/overview.png
Normal file
After Width: | Height: | Size: 142 KiB |
After Width: | Height: | Size: 307 KiB |
After Width: | Height: | Size: 301 KiB |
After Width: | Height: | Size: 364 KiB |