forked from trekhleb/javascript-algorithms
-
Notifications
You must be signed in to change notification settings - Fork 0
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Checking mergeability…
Don’t worry, you can still create the pull request.
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: kainlite/javascript-algorithms
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Could not load branches
Nothing to show
Loading
...
head repository: trekhleb/javascript-algorithms
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Could not load branches
Nothing to show
Loading
- 18 commits
- 44 files changed
- 9 contributors
Commits on May 28, 2026
Commits on Jun 14, 2026
-
fix: correct JSDoc position range to match code validation (1-70)
The JSDoc comment states the valid position range is '1 to 75', but the code validates against topMaxValidPosition = 70. This PR fixes the documentation to match the implementation.
-
refactor: replace deprecated String.prototype.substr() with substring()
String.prototype.substr() is deprecated and may be removed in future JavaScript engine versions (Annex B of the ECMAScript specification). Replaced all occurrences in the codebase with String.prototype.substring(): - src/algorithms/string/rabin-karp/rabinKarp.js - src/algorithms/cryptography/polynomial-hash/__test__/SimplePolynomialHash.test.js - src/algorithms/cryptography/polynomial-hash/__test__/PolynomialHash.test.js The behavior is identical since all substr(start, length) calls are converted to substring(start, start + length) with the same arguments. All existing tests pass.
-
-
-
Commits on Jun 19, 2026
Commits on Jun 26, 2026
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...master