Python Program for Binary Search with explanation
Binary search algorithm is used to find a number in a sorted list. so, the pre condition for binary search is that the list should be sorted. If the number is found then its index is returned.
This algorithm works on divide and conquer principle.
This algorithm works on divide and conquer principle.
Read more »
Comments
Post a Comment