I have added the code for the Binary Search algorithm in Python. This algorithm will keep reducing the range to search for a value by half. The time complexity is O(log n).
Checklist:
[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] New and existing unit tests pass locally with my changes.
[x] I have added the file in the correct directory
I have added the code for the Binary Search algorithm in Python. This algorithm will keep reducing the range to search for a value by half. The time complexity is O(log n).
Checklist: