Update Leetcode 题解 - 二分查找.md

调整死循环演示表首行的 h 值。
This commit is contained in:
CyC2018
2026-10-31 00:23:18 +08:00
parent fcffd8d83c
commit 86361a33d5
+1 -1
View File
@@ -89,7 +89,7 @@ public int binarySearch(int[] nums, int key) {
```text
nums = {0, 1, 2}, key = 1
l m h
0 1 2 nums[m] >= key
0 1 3 nums[m] >= key
0 0 1 nums[m] < key
1 1 1 nums[m] >= key
1 1 1 nums[m] >= key