Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 81. Search in Rotated Sorted Array II
Given a non-decreasing sorted array rotated at an unknown pivot (and possibly containing duplicates), determine whether a target value exists in the array. The core challenge is adapting binary search to handle rotation and equal elements, which can in the worst case degrade the runtime from logarithmic to linear when duplicates obscure the sorted half.
Asked at:
Microsoft
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Early January, 2020
Microsoft
Mid-level
Find in Rotated Sorted Array with Duplicates
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.