566. 重塑矩阵 https://leetcode.cn/problems/reshape-the-matrix
566. Reshape the Matrix https://leetcode.com/problems/reshape-the-matrix
74. 搜索二维矩阵 https://leetcode.cn/problems/search-a-2d-matrix
74. Search a 2D Matrix https://leetcode.com/problems/search-a-2d-matrix
240. 搜索二维矩阵 II https://leetcode.cn/problems/search-a-2d-matrix-ii
240. Search a 2D Matrix II https://leetcode.com/problems/search-a-2d-matrix-ii
392. 判断子序列 https://leetcode.cn/problems/is-subsequence
392. Is Subsequence https://leetcode.com/problems/is-subsequence
792. 匹配子序列的单词数 https://leetcode.cn/problems/number-of-matching-subsequences
792. Number of Matching Subsequences https://leetcode.com/problems/number-of-matching-subsequences
658. 找到 K 个最接近的元素 https://leetcode.cn/problems/find-k-closest-elements
658. Find K Closest Elements https://leetcode.com/problems/find-k-closest-elements
35. 搜索插入位置 https://leetcode.cn/problems/search-insert-position
35. Search Insert Position https://leetcode.com/problems/search-insert-position
162. 寻找峰值 https://leetcode.cn/problems/find-peak-element
162. Find Peak Element https://leetcode.com/problems/find-peak-element
852. 山脉数组的峰顶索引 https://leetcode.cn/problems/peak-index-in-a-mountain-array
852. Peak Index in a Mountain Array https://leetcode.com/problems/peak-index-in-a-mountain-array
剑指 Offer 53 - I. 在排序数组中查找数字 I https://leetcode.cn/problems/zai-pai-xu-shu-zu-zhong-cha-zhao-shu-zi-lcof
剑指 Offer 53 - I. 在排序数组中查找数字 LCOF https://leetcode.com/problems/zai-pai-xu-shu-zu-zhong-cha-zhao-shu-zi-lcof
剑指 Offer 53 - II. 0~n-1中缺失的数字 https://leetcode.cn/problems/que-shi-de-shu-zi-lcof
剑指 Offer 53 - II. 缺失的数字 LCOF https://leetcode.com/problems/que-shi-de-shu-zi-lcof
33. 搜索旋转排序数组 https://leetcode.cn/problems/search-in-rotated-sorted-array
33. Search in Rotated Sorted Array https://leetcode.com/problems/search-in-rotated-sorted-array
81. 搜索旋转排序数组 II https://leetcode.cn/problems/search-in-rotated-sorted-array-ii
81. Search in Rotated Sorted Array II https://leetcode.com/problems/search-in-rotated-sorted-array-ii
Prerequisite Knowledge
Before reading this article, you should first study:
The essence of binary search is to quickly narrow down the search interval. This article will show you classic use cases of the binary search algorithm in arrays.
In the previous article Detailed Explanation of the Binary Search Framework, we discussed binary search in one-dimensional arrays. How do we apply binary search in two-dimensional matrices?