keon / algorithms

Minimal examples of data structures and algorithms in Python
MIT License
24.1k stars 4.61k forks source link

Update binary_search.py #902

Closed Anujeet23 closed 1 year ago

Anujeet23 commented 1 year ago

Added explanation and also changed the way we find mid value so that it will be in the range of integers.