mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-07-12 14:40:53 +08:00
Update READMEs.
This commit is contained in:
@ -7,3 +7,13 @@ A string of length `n` has `n!` permutation.
|
|||||||
Below are the permutations of string `ABC`.
|
Below are the permutations of string `ABC`.
|
||||||
|
|
||||||
`ABC ACB BAC BCA CBA CAB`
|
`ABC ACB BAC BCA CBA CAB`
|
||||||
|
|
||||||
|
When the order doesn't matter, it is a **Combination**.
|
||||||
|
|
||||||
|
When the order **does** matter it is a **Permutation**.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## References
|
||||||
|
|
||||||
|
[Math Is Fun](https://www.mathsisfun.com/combinatorics/combinations-permutations.html)
|
||||||
|
Reference in New Issue
Block a user