This commit is contained in:
krahets
2023-08-19 22:07:27 +08:00
parent 71c7786f51
commit 2e27ad1680
99 changed files with 283 additions and 283 deletions
+3 -3
View File
@@ -3,9 +3,9 @@ comments: true
status: new
---
# 10.3.   二分查找边界
# 10.3   二分查找边界
## 10.3.1.   查找左边界
## 10.3.1   查找左边界
!!! question
@@ -150,7 +150,7 @@ status: new
[class]{}-[func]{binary_search_left_edge}
```
## 10.3.2.   查找右边界
## 10.3.2   查找右边界
那么如何查找最右一个 `target` 呢?最直接的方式是修改代码,替换在 `nums[m] == target` 情况下的指针收缩操作。代码在此省略,有兴趣的同学可以自行实现。