Interview Coder drill
Interview Coder drill
Interview Coder drill
20:00
Given a rotated sorted array and a target, print the target index or -1 if it is missing.
Example 1
Input: nums = [4,5,6,7,0,1,2], target = 0
Output: 4
0 appears at index 4.
Constraints
Capture your plan, then rate how clearly you recalled it before submitting.