Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove repetitive words #1161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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