Sixt Interview Question

Find an element in a sorted infinite array, find the highest and second highest value in an array in log (n) time