Search in Rotated Sorted Array

Searching ยท medium

Given a rotated sorted array `nums` of distinct values, implement `search(nums, target)` returning the index of `target` or `-1`.

Learning resources

Loading...

Run your code to see results.