Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Permalink

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
Choose a base ref
Loading
...
head repository: trekhleb/javascript-algorithms
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Checking mergeability… Don’t worry, you can still create the pull request.
  • 18 commits
  • 44 files changed
  • 9 contributors

Commits on Feb 18, 2026

  1. Configuration menu
    Copy the full SHA
    0248845 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    115e428 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2026

  1. Fix zero-length combinations

    Sean Doherty authored and trekhleb committed May 20, 2026
    Configuration menu
    Copy the full SHA
    3cc976b View commit details
    Browse the repository at this point in the history
  2. Fixes trekhleb#2049

    trekhleb committed May 20, 2026
    Configuration menu
    Copy the full SHA
    2c1d2d7 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2026

  1. Configuration menu
    Copy the full SHA
    1c21085 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fe332ff View commit details
    Browse the repository at this point in the history
  3. Fix MD formatting

    trekhleb committed May 28, 2026
    Configuration menu
    Copy the full SHA
    3b53377 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2026

  1. 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.
    huizixin authored and trekhleb committed Jun 14, 2026
    Configuration menu
    Copy the full SHA
    95ead35 View commit details
    Browse the repository at this point in the history
  2. 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.
    fauzan171 authored and trekhleb committed Jun 14, 2026
    Configuration menu
    Copy the full SHA
    4ed3123 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    14e885a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c1221f7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    758b93a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0ae5dd8 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2026

  1. Configuration menu
    Copy the full SHA
    6bb32ed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7563da8 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2026

  1. Configuration menu
    Copy the full SHA
    705c3be View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dc12f1f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0f52fba View commit details
    Browse the repository at this point in the history
Loading

AltStyle によって変換されたページ (->オリジナル) /