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: shuhao-alan-fan/PythonAlgorithm
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.
  • 2 commits
  • 2 files changed
  • 4 contributors

Commits on Dec 1, 2025

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

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.14.3 → v0.14.7](astral-sh/ruff-pre-commit@v0.14.3...v0.14.7)
    - [github.com/tox-dev/pyproject-fmt: v2.11.0 → v2.11.1](tox-dev/pyproject-fmt@v2.11.0...v2.11.1)
    - [github.com/pre-commit/mirrors-mypy: v1.18.2 → v1.19.0](pre-commit/mirrors-mypy@v1.18.2...v1.19.0)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Dec 1, 2025
    Configuration menu
    Copy the full SHA
    8934bab View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2025

  1. [Searches] Fix Binary Search bug with duplicate elements (TheAlgorith…

    …ms#13946)
    
    * Fix binary search with duplicates issue TheAlgorithms#13886
    
    * Add docstrings to binary search functions
    
    Added docstrings for lower_bound and upper_bound functions.
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Update searches/binary_search.py
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    
    * Refactor docstrings for lower_bound and upper_bound
    
    Updated docstring parameter and return type annotations for lower_bound and upper_bound functions.
    
    * Update searches/binary_search.py
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    4 people authored Dec 13, 2025
    Configuration menu
    Copy the full SHA
    2c15b8c View commit details
    Browse the repository at this point in the history
Loading