Question d’entretien chez ZenQ

what is a binary search

Réponse à la question d'entretien

Utilisateur anonyme

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.