- Why not 😂
- Clean and focused
- Actively maintained
- Because All Algorithms should easy to use in Python
Read the detailed documentation at python.allalgorithms.com or see Tree.
pip install allalgorithms
from allalgorithms.searches import binary_search
arr = [-2, 1, 2, 7, 10, 77]
print(binary_search(arr, 7))
# -> 3
print(binary_search(arr, 3))
# -> None
- Searches
- Sorting
- javascript-lib: All ▲lgorithms Javascript library
Carlos Abraham |
MIT License © Carlos Abraham