Lonestar's 知识库

Home

❯

leetcode

❯

搜索旋转排序数组

搜索旋转排序数组

2026年3月13日1分钟阅读

[搜索旋转排序数组](https://leetcode.cn/problems/search-in-rotated-sorted-array/description/?envType=study-plan-v2&envId=top-100-liked)

二分查找,根据 [0] 和 [mid] 的大小关系判断哪部分是有序的

3 4 5 6 7 1 2
-------

6 7 1 2 3 4 5
      -------

关系图谱

Created with Quartz v4.5.2 © 2026

  • GitHub