DIY: Search in Rotated Sorted Array
Discover how to implement a function in Elixir that searches for a specified number within a rotated sorted array. Understand the problem context and develop a solution that returns the correct index or -1 when the number is not found. This lesson helps you tackle a frequent coding interview challenge using practical coding techniques.
We'll cover the following...
We'll cover the following...
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, ...