Limited Time Offer:Up to 0% off Hello Interview Premium
Up to 0% off Hello Interview Premium 🎉
Hello Interview
Your Dashboard
System Design
Code
Low Level Design
Behavioral
AI Coding
New
ML System Design
Salary Negotiation
System Design
Low Level Design
AI Coding
Behavioral
Code Review
New
Interview Questions
Success Stories
System Design
Low-Level Design
New
Ask The Community
Discord
Blog
Refer a Friend
Pricing
Sign in / Sign up
Search
⌘K
Pricing

Tutor

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

Microsoft


Question Timeline

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

Company
​
Level
All Regions
Region

Early January, 2020

Microsoft

Microsoft

Mid-level

Find in Rotated Sorted Array with Duplicates

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

Hello Interview Premium

Recent interview questions
System Design Guided Practice
Exclusive content
Learn More
Questions
Meta SWE Interview QuestionsAmazon SWE Interview QuestionsGoogle SWE Interview QuestionsOpenAI SWE Interview QuestionsAnthropic SWE Interview QuestionsEngineering Manager (EM) Interview Questions
Learn
Learn System DesignLearn DSALearn BehavioralLearn ML System DesignLearn Low Level DesignGuided Practice
Links
FAQPricingGift PremiumHello Interview Premium
Legal
Terms and ConditionsPrivacy PolicySecurity
Contact
About UsProduct Support

7511 Greenwood Ave North Unit #4238 Seattle WA 98103


© 2026 Optick Labs Inc. All rights reserved.