# Binary Search

- [Classical Binary Search](https://blog.yushunchen.com/algo/binary-search/classical-binary-search.md): ID: 457; easy; 经典二分查找问题
- [First Position of Target](https://blog.yushunchen.com/algo/binary-search/first-position-of-target.md): ID: 14; easy; 二分查找
- [Last Position of Target](https://blog.yushunchen.com/algo/binary-search/last-position-of-target.md): ID: 458; easy; 目标最后位置
- [Guess Number Higher or Lower](https://blog.yushunchen.com/algo/binary-search/guess-number-higher-or-lower.md): ID: 662; easy; 猜数游戏
- [Search in a Big Sorted Array](https://blog.yushunchen.com/algo/binary-search/search-in-a-big-sorted-array.md): ID: 447; medium; 在大数组中查找
- [Total Occurrence of Target](https://blog.yushunchen.com/algo/binary-search/total-occurrence-of-target.md): ID: 462; easy; 目标出现总和
- [First Bad Version](https://blog.yushunchen.com/algo/binary-search/first-bad-version.md): ID; 74; medium; 第一个错误的代码版本
- [Find Minimum in Rotated Sorted Array](https://blog.yushunchen.com/algo/binary-search/find-minimum-in-rotated-sorted-array.md): ID: 159; medium; 寻找旋转排序数组中的最小值
- [Maximum Number in Mountain Sequence](https://blog.yushunchen.com/algo/binary-search/maximum-number-in-mountain-sequence.md): ID: 585; medium; 山脉序列中的最大值
- [Search a 2D Matrix](https://blog.yushunchen.com/algo/binary-search/search-a-2d-matrix.md): ID: 28; easy; 搜索二维矩阵
- [Search a 2D Matrix II](https://blog.yushunchen.com/algo/binary-search/search-a-2d-matrix-ii.md): ID: 38; medium; 搜索二维矩阵（二）
- [Search for a Range](https://blog.yushunchen.com/algo/binary-search/search-for-a-range.md): ID: 61; medium; 搜索区间
- [Smallest Rectangle Enclosing Black Pixels](https://blog.yushunchen.com/algo/binary-search/smallest-rectangle-enclosing-black-pixels.md): ID: 600; hard; 包裹黑色像素点的最小矩形
- [Find Peak Element](https://blog.yushunchen.com/algo/binary-search/find-peak-element.md): ID: 75; medium; 寻找峰值
- [Search in Rotated Sorted Array](https://blog.yushunchen.com/algo/binary-search/search-in-rotated-sorted-array.md): ID: 62; medium; 搜索旋转排序数组
- [Wood Cut](https://blog.yushunchen.com/algo/binary-search/wood-cut.md): ID; 183; hard; 木材加工
- [Find the Duplicate Number](https://blog.yushunchen.com/algo/binary-search/find-the-duplicate-number.md): ID: 633; medium; 寻找重复的数
- [Sqrt(x) II](https://blog.yushunchen.com/algo/binary-search/sqrt-x-ii.md): ID: 586; medium; 对x开根II
- [Maximum Average Subarray II](https://blog.yushunchen.com/algo/binary-search/maximum-average-subarray-ii.md): ID: 617; medium; 子数组的最大平均值 II
- [Copy Books](https://blog.yushunchen.com/algo/binary-search/copy-books.md): ID: 437; medium; 书籍复印
- [How Many Problem Can I Accept](https://blog.yushunchen.com/algo/binary-search/how-many-problem-can-i-accept.md): ID: 937; medium; 可以完成的题目数量


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://blog.yushunchen.com/algo/binary-search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
