Search in a Array | Amazon interview Question
Anonymous User
436

Given an array of size N, there exist a pattern such that, a[i]-M <= a[i+1] <= a[i]+M . Suggest an algorithm to search for a number in the given array.
Is There a logn solution for this Question ??

Comments (4)