Pregunta de entrevista de ZenQ

what is a binary search

Respuesta de la entrevista

Anónimo

18 sep 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.