Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/algorithms/sets/permutations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/algorithms/string/z-algorithm/zAlgorithm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down