01 · Question
There is an integer array nums sorted in ascending order (with distinct values), and rotated. Given the array and an integer target, return the index of target or -1 if it is not found.
Example:
- Input:
nums = [4,5,6,7,0,1,2], target = 0 - Output:
4