Search
⌘K

Leetcode 33. Search in Rotated Sorted Array

Given an ascending array of distinct integers that has been rotated at an unknown pivot, return the index of a target value (or -1 if absent) using an O(log n) search that accounts for the rotation.

Asked at:

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid July, 2025

Meta

Manager

Early August, 2024

Meta

Senior

Comments

Your account is free and you can post anonymously if you choose.