Update Leetcode 题解 - 二分查找.md

代码块标注语言。
This commit is contained in:
CyC2018
2026-10-25 19:03:37 +08:00
parent 4a618bec71
commit 2522f7b51c
+1 -1
View File
@@ -309,7 +309,7 @@ private int findFirst(int[] nums, int target) {
在寻找第一个位置的二分查找代码中,需要注意 h 的取值为 nums.length,而不是 nums.length - 1。先看以下示例:
```
```text
nums = [2,2], target = 2
```