SIGN IN SIGN UP
TheAlgorithms / Python UNCLAIMED

All Algorithms implemented in Python

219160 0 1 Python

[Searches] Fix Binary Search bug with duplicate elements (#13946)

* Fix binary search with duplicates issue #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 <[email protected]>

* 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 <[email protected]>

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: John Law <[email protected]>
A
Alan718 committed
2c15b8c54eb8130e83640fe1d911c10eb6cd70d4
Parent: 8934bab
Committed by GitHub <[email protected]> on 12/13/2025, 1:15:31 AM