Files
developer-roadmap/roadmaps/leetcode/content/search-in-rotated-array@aDKtHMczSpCIT-ST0irRa.md
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

710 B

Search in Rotated Sorted Array

A sorted array has been rotated at an unknown index. Find a target value in O(log n). At every step, one of the two halves must be sorted, and you can use that to decide which half to search. This problem teaches you to apply binary search even when the input is not perfectly sorted, by adding a condition to identify the sorted half.

Visit the following resources to learn more: