Challenge: Recursion
Test your knowledge of recursion by solving this exercise.
We'll cover the following...
Let's practice what we have learned so far.
Task
Suppose you are given a sorted array of distinct numbers that has been rotated steps for some unknown integer between 1 and . In other words, you are given an array such that some prefix is sorted in increasing order, the corresponding suffix is sorted in increasing order, and . For example, you might be given the following element array (where ): ...
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy