Domanda di colloquio di Yandex

Algorithm questions, binary search time and space complexity