Tuesday, April 12, 2011

Searching in an Up Down Array

There is an array and the distance between any two consequent
elements is one(+1 or -1) and given a number. You have to check whether the
number is in array or not with minimum complexity

No comments: