mirror of
https://github.com/CyC2018/Interview-Notebook.git
synced 2026-10-27 22:13:45 +00:00
Update Leetcode 题解 - 二分查找.md
代码块标注语言。
This commit is contained in:
@@ -309,7 +309,7 @@ private int findFirst(int[] nums, int target) {
|
||||
|
||||
在寻找第一个位置的二分查找代码中,需要注意 h 的取值为 nums.length,而不是 nums.length - 1。先看以下示例:
|
||||
|
||||
```
|
||||
```text
|
||||
nums = [2,2], target = 2
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user