mirror of
https://github.com/CyC2018/Interview-Notebook.git
synced 2026-10-31 19:13:42 +00:00
Update Leetcode 题解 - 二分查找.md
调整死循环演示表首行的 h 值。
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user