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.

Read more »

Comments

Popular posts from this blog

How to Install Antlr4 in Ubuntu/Linux

How to install python-gst (pygst) in ubuntu 16.04

How to make a gui Calculator in Python using Tkinter