DIY: Search in Rotated Sorted Array
Problem statement
Search for a given number in a sorted array of unique elements that have been rotated an arbitrary number. Assume that an array is rotated at some point unknown to you beforehand (For example, [0,1,2,4,5,6,7]
might become [4,5,6,7,0,1,2]
...
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy