Perform binary search on a sorted array, of which you don't know the size.
Sigiloso
Seems a vague question. May be, we have to devise some strategy. We consider range = 1 and search for given X among those 1 nos. , if not found, we increase range = range*2, If such right end is found , where a[range-1] > X, then we are sure that X is somewhere b/w index [0, range-1] ..... Now do simple binary search. So, complexity = finding the apt. right end. + finding X = log n + log n = log n