Pergunta de entrevista da empresa Bloomberg

Now if you have a sorted array, how will you search for an element?

Respostas da entrevista

Sigiloso

24 de fev. de 2011

Algo of binary search

Sigiloso

15 de mar. de 2011

We can use binary search, it takes O(log n) time.

Sigiloso

15 de mar. de 2011

True. He then asked me to write a function for binary search.