ZenQ interview question

what is a binary search

Interview Answer

Anonymous

18 Sept 2018

binary search is a searching technique.It is used to checck whether an element present in an array or not by finding the middle element of the array.If the required element equals to the middle return it.If it is less than the middle search in left array else right array.Binary search is always done on a sorted array.