A sorted array is rotated at an unknown pivot. Given a target, return its index or -1, running in O(log n) time.
Practise this challenge
All coding challenges