Pregunta de entrevista de Sensys Networks

Write a binary search function in any language.