Yandex Interview Question

Algorithm questions, binary search time and space complexity