mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-09-20 07:43:04 +08:00
chore: remove repetitive words
Signed-off-by: mountdisk <mountdisk@icloud.com.>
This commit is contained in:
parent
ca3d16dcce
commit
08130dd3d8
@ -27,7 +27,7 @@ n * (n-1) * (n -2) * ... * 1 = n!
|
||||
## Permutations with repetitions
|
||||
|
||||
When repetition is allowed we have permutations with repetitions.
|
||||
For example the the lock below: it could be `333`.
|
||||
For example the lock below: it could be `333`.
|
||||
|
||||
![Permutation Lock](https://www.mathsisfun.com/combinatorics/images/combination-lock.jpg)
|
||||
|
||||
|
@ -48,7 +48,7 @@ function buildZArray(zString) {
|
||||
}
|
||||
|
||||
// Now we may calculate how many characters starting from current position
|
||||
// are are the same as the prefix. We may calculate it by difference between
|
||||
// are the same as the prefix. We may calculate it by difference between
|
||||
// right and left Z box boundaries.
|
||||
zArray[charIndex] = zBoxRightIndex - zBoxLeftIndex;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user