704 | 二分查找 | https://leetcode.cn/problems/binary-search/ | 二分查找的基本问题:在有序数组中查找某个元素的下标。 |
374 | 猜数字大小 | https://leetcode.cn/problems/guess-number-higher-or-lower/ | 二分查找的基本问题:查找一个整数。 |
162 | 寻找峰值 | https://leetcode.cn/problems/find-peak-element/ | |
35 | 搜索插入位置 | https://leetcode.cn/problems/search-insert-position/ | 查找第 1 个大于等于目标元素的下标。不要硬套模板,应该回到题目给出的条件中去寻找答案 |
34 | 在排序数组中查找元素的第一个和最后一个位置 | https://leetcode.cn/problems/find-first-and-last-position-of-element-in-sorted-array/ | 查找第 1 个和最后 1 个等于目标元素的元素。 |
69 | x 的平方根 | https://leetcode.cn/problems/sqrtx/ | 二分查找的基本问题:查找一个整数。 |
875 | 爱吃香蕉的珂珂 | https://leetcode.cn/problems/koko-eating-bananas | 二分查找的基本问题:查找一个整数。利用单调性。这一类问题很多,一定要掌握。 |
4 | 寻找两个正序数组的中位数 | https://leetcode.cn/problems/median-of-two-sorted-arrays/ | |