# Search in rotated sorted array

Aced (formerly Exponent) publishes a public search API over its indexed pages; the guide is at https://www.aced.io/agents/agent-access.

Source: https://www.aced.io/questions/4447/search-in-rotated-sorted-array
Source observed: 2026-11-05T00:25:14.784Z
Last checked: 2026-11-05T00:25:14.784+00:00
Indexed: 2026-11-06T04:08:34.611+00:00

---

# Search in rotated sorted array

We publish this as a **Data Structures & Algorithms** and **Coding** interview question. The page includes interview metadata, one shared interview experience, related questions, and preparation courses.

- **Interview metadata:** +812 interviews
- **Reported last asked:** 2 years ago
- **Roles:** [Software Engineer](https://www.aced.io/questions?role=swe) (5), [Data Engineer](https://www.aced.io/questions?role=data-engineer) (3), [Data Scientist](https://www.aced.io/questions?role=data-science) (2), [Machine Learning Engineer](https://www.aced.io/questions?role=ml-engineer) (2)
- **Companies:** [Mastercard](https://www.aced.io/questions?company=mastercard), [Apple](https://www.aced.io/questions?company=apple), [LinkedIn](https://www.aced.io/questions?company=linkedin), [Goldman Sachs](https://www.aced.io/questions?company=goldman-sachs), [Visa](https://www.aced.io/questions?company=visa), [Nvidia](https://www.aced.io/questions?company=nvidia), Oracle, Service Now, Walmart Labs, TikTok, Salesforce, and M2P Fintech
- **Categories:** Data Structures & Algorithms; Coding

Detailed company statistics are available through [Upgrade](https://www.aced.io/upgrade?src=questions).

## Interview experience

We have **1 shared interview experience**:

### Mastercard · 2 years ago

![Mastercard](https://exponent-static.s3.amazonaws.com/company_logos/mastercard.png)

> “The interview process was fairly structured, starting with an initial screening followed by technical and/or managerial rounds. What went well was the clarity of questions and the opportunity to explain my thought process. One area that could have been better was the time allocated for certain discussions, which felt slightly rushed.”

**Role:** Software Engineer · Senior / L5

[Read the Mastercard interview experience](https://www.aced.io/experiences/mastercard-senior-software-engineer-interview-52332d)

## Community answers

No answers have been contributed by the community yet. Log in or sign up to answer this question; submitting marks it complete.

## Related questions

- [Squares of sorted array](https://www.aced.io/questions/3824/square-of-sorted-array)
- [Sort a nearly sorted (or K sorted) array.](https://www.aced.io/questions/5392/k-sorted-array)
- [Find a sorted triplet in a given array.](https://www.aced.io/questions/1135/find-sorted-triplet-in-array)

## Related courses

### [Machine Learning Engineer Interview Prep](https://www.aced.io/courses/ml-engineer)

![Machine Learning Engineer Interview Prep](https://images.ctfassets.net/x78yjrjc11pq/6UfkHxUyLQVfDHSfLNQtWa/1be1539a65b4f6f15201f5b573c0a578/ML_Engineer_Interview_Prep_Course.jpeg?w=800&h=800&fm=webp&q=75)

We prepare candidates for machine learning roles at Meta, Google, Amazon, Apple, Microsoft, Nvidia, and other top companies with mock interviews, frameworks, and advice from senior candidates. Topics include ML system design, core concepts, coding, behavioral interviews, and more.

### [Data Science Interview Prep](https://www.aced.io/courses/data-science)

![Data Science Interview Prep](https://images.ctfassets.net/x78yjrjc11pq/3U4C5C0OkDR0UeGch4AmlE/7ad489430b676a088cb973307fe77884/Data_Science_Interview_Prep_Course.jpeg?w=800&h=800&fm=webp&q=75)

We prepare candidates for data science roles at Google, Amazon, Microsoft, Meta, Apple, and other top companies with mock interviews, frameworks, and advice from senior candidates. Topics include statistics, experimentation, coding, SQL, machine learning, behavioral interviews, and more.

[All Questions](https://www.aced.io/questions)

---

[Read this page’s summary](https://www.aced.io/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F4447%2Fsearch-in-rotated-sorted-array&trace=t_679ff9ab98f3)

## Ask a follow-up about this page

Need a more specific answer? Ask the exact question you have. It returns a fresh, cited answer from Aced (formerly Exponent)’s knowledge base. No account or API key required.

Open this URL with your own question, URL-encoded. Include your question in q. All research inputs are optional; no account or setup.

`GET https://www.aced.io/agents/agent/faq?q={question}&trace=t_679ff9ab98f3`

[Tool guide and examples](https://www.aced.io/agents/agent-access) · [OpenAPI](https://www.aced.io/agents/api/public/v1/openapi.json) · [Page TLDR form](https://www.aced.io/agents/agent-tools/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F4447%2Fsearch-in-rotated-sorted-array). Opening a form does not execute a tool.