Skip to content
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: ungsur/PythonAlgorithms
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: TheAlgorithms/Python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 14 commits
  • 24 files changed
  • 17 contributors

Commits on Mar 25, 2026

  1. Bump actions/deploy-pages from 4 to 5 (TheAlgorithms#14445)

    Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages) from 4 to 5.
    - [Release notes](https://github.com/actions/deploy-pages/releases)
    - [Commits](actions/deploy-pages@v4...v5)
    
    ---
    updated-dependencies:
    - dependency-name: actions/deploy-pages
      dependency-version: '5'
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 25, 2026
    Configuration menu
    Copy the full SHA
    2574004 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2026

  1. Bump actions/configure-pages from 5 to 6 (TheAlgorithms#14470)

    Bumps [actions/configure-pages](https://github.com/actions/configure-pages) from 5 to 6.
    - [Release notes](https://github.com/actions/configure-pages/releases)
    - [Commits](actions/configure-pages@v5...v6)
    
    ---
    updated-dependencies:
    - dependency-name: actions/configure-pages
      dependency-version: '6'
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 27, 2026
    Configuration menu
    Copy the full SHA
    841e947 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2026

  1. [pre-commit.ci] pre-commit autoupdate (TheAlgorithms#14325)

    * [pre-commit.ci] pre-commit autoupdate
    
    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.4](astral-sh/ruff-pre-commit@v0.14.14...v0.15.4)
    - [github.com/tox-dev/pyproject-fmt: v2.12.1 → v2.16.2](tox-dev/pyproject-fmt@v2.12.1...v2.16.2)
    - [github.com/abravalheri/validate-pyproject: v0.24.1 → v0.25](abravalheri/validate-pyproject@v0.24.1...v0.25)
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * updating DIRECTORY.md
    
    * Configure mypy to target Python 3.14 and update to v1.20.0
    
    Agent-Logs-Url: https://github.com/TheAlgorithms/Python/sessions/332481be-4c5f-4412-abf8-6ef4a3913828
    
    Co-authored-by: cclauss <3709715+cclauss@users.noreply.github.com>
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Maxim Smolskiy <mithridatus@mail.ru>
    Co-authored-by: MaximSmolskiy <MaximSmolskiy@users.noreply.github.com>
    Co-authored-by: Christian Clauss <cclauss@me.com>
    Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
    Co-authored-by: cclauss <3709715+cclauss@users.noreply.github.com>
    6 people authored Apr 2, 2026
    Configuration menu
    Copy the full SHA
    840ca00 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2026

  1. fix: remove dead code in hamming_code.py to resolve SIM113 (TheAlgori…

    …thms#14509)
    
    Co-authored-by: Max <183308611+max938-coder@users.noreply.github.com>
    max-klingner and max-klingner authored Apr 6, 2026
    Configuration menu
    Copy the full SHA
    754dac4 View commit details
    Browse the repository at this point in the history
  2. [pre-commit.ci] pre-commit autoupdate (TheAlgorithms#14513)

    * [pre-commit.ci] pre-commit autoupdate
    
    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.15.4 → v0.15.9](astral-sh/ruff-pre-commit@v0.15.4...v0.15.9)
    - [github.com/codespell-project/codespell: v2.4.1 → v2.4.2](codespell-project/codespell@v2.4.1...v2.4.2)
    - [github.com/tox-dev/pyproject-fmt: v2.16.2 → v2.21.0](tox-dev/pyproject-fmt@v2.16.2...v2.21.0)
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Maxim Smolskiy <mithridatus@mail.ru>
    pre-commit-ci[bot] and MaximSmolskiy authored Apr 6, 2026
    Configuration menu
    Copy the full SHA
    02680c9 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2026

  1. Add type hints to unknown_sort (TheAlgorithms#14489)

    * Added type hints for bogo_sort
    
    * Add type hints to unknown_sort
    
    * Update bogo_sort.py
    
    * Update unknown_sort.py
    
    ---------
    
    Co-authored-by: Maxim Smolskiy <mithridatus@mail.ru>
    Aarav-Arya and MaximSmolskiy authored Apr 10, 2026
    Configuration menu
    Copy the full SHA
    f944b91 View commit details
    Browse the repository at this point in the history
  2. Fix empty input edge case and correct output formatting (TheAlgorithm…

    …s#14444)
    
    * Fix empty input edge case and correct output formatting
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Update pigeonhole_sort.py
    
    * Update pigeonhole_sort.py
    
    * Update pigeonhole_sort.py
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Maxim Smolskiy <mithridatus@mail.ru>
    3 people authored Apr 10, 2026
    Configuration menu
    Copy the full SHA
    fc2f947 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2026

  1. Bump actions/upload-pages-artifact from 4 to 5 (TheAlgorithms#14551)

    Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 4 to 5.
    - [Release notes](https://github.com/actions/upload-pages-artifact/releases)
    - [Commits](actions/upload-pages-artifact@v4...v5)
    
    ---
    updated-dependencies:
    - dependency-name: actions/upload-pages-artifact
      dependency-version: '5'
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 13, 2026
    Configuration menu
    Copy the full SHA
    791deb4 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2026

  1. feat: add Segment Intersection algorithm (TheAlgorithms#14416)

    * feat: add Segment Intersection algorithm
    
    * fix: use descriptive parameter names
    
    ---------
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    AliAlimohammadi and poyea authored May 18, 2026
    Configuration menu
    Copy the full SHA
    abf7168 View commit details
    Browse the repository at this point in the history
  2. Fix type hints in sorts/tim_sort.py, relates to TheAlgorithms#14457 (T…

    …heAlgorithms#14474)
    
    * Add type hints to tim_sort.py, relates to TheAlgorithms#14457
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Fix ruff PYI041 error: use float instead of int | float
    
    * Fix mypy error: support str and tuple inputs as defined in doctests
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Fix ruff E501: wrap binary_search parameters to respect 88 char limit
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Refactor generics to use Python 3.12 type parameter syntax (PEP 695)
    
    * Use Any from typing to resolve mypy list unpacking bugs
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    3 people authored May 18, 2026
    Configuration menu
    Copy the full SHA
    144ef9c View commit details
    Browse the repository at this point in the history

Commits on May 19, 2026

  1. feat: add Ramer-Douglas-Peucker polyline simplification algorithm (Th…

    …eAlgorithms#14372)
    
    * feat: add Ramer-Douglas-Peucker polyline simplification algorithm
    
    * Use descriptive parameter names
    
    * Update geometry/ramer_douglas_peucker.py
    
    * Update geometry/ramer_douglas_peucker.py
    
    * Update ramer_douglas_peucker.py
    
    * Update ramer_douglas_peucker.py
    
    * Update ramer_douglas_peucker.py
    
    ---------
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    AliAlimohammadi and poyea authored May 19, 2026
    Configuration menu
    Copy the full SHA
    33a8e0f View commit details
    Browse the repository at this point in the history

Commits on May 20, 2026

  1. Added Johnson's algorithm for all-pairs shortest paths (TheAlgorithms…

    …#13340)
    
    * Fix typos in Johnson's algorithm (nd -> and) to pass codespell
    
    * Rename type aliases and h parameter to follow snake_case and descriptive naming
    
    * Potential fix for pull request finding
    
    Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    Co-authored-by: Christian Clauss <cclauss@me.com>
    Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
    4 people authored May 20, 2026
    Configuration menu
    Copy the full SHA
    a9f2e72 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2026

  1. [pre-commit.ci] pre-commit autoupdate (TheAlgorithms#14629)

    * [pre-commit.ci] pre-commit autoupdate
    
    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.15.9 → v0.15.12](astral-sh/ruff-pre-commit@v0.15.9...v0.15.12)
    - [github.com/tox-dev/pyproject-fmt: v2.21.0 → v2.21.1](tox-dev/pyproject-fmt@v2.21.0...v2.21.1)
    
    * updating DIRECTORY.md
    
    * Update pre-commit hook versions
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Christian Clauss <cclauss@me.com>
    Co-authored-by: cclauss <cclauss@users.noreply.github.com>
    3 people authored May 22, 2026
    Configuration menu
    Copy the full SHA
    456d644 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2026

  1. [pre-commit.ci] pre-commit autoupdate (TheAlgorithms#14747)

    * [pre-commit.ci] pre-commit autoupdate
    
    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.15.14 → v0.15.15](astral-sh/ruff-pre-commit@v0.15.14...v0.15.15)
    - [github.com/tox-dev/pyproject-fmt: v2.21.2 → v2.23.0](tox-dev/pyproject-fmt@v2.21.2...v2.23.0)
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Jun 1, 2026
    Configuration menu
    Copy the full SHA
    6c04620 View commit details
    Browse the repository at this point in the history
Loading