From 68dd3b8d4b519e16c8a798958094c31f25391bbb Mon Sep 17 00:00:00 2001 From: CyC2018 <1029579233@qq.com> Date: Fri, 9 Mar 2018 14:06:25 +0800 Subject: [PATCH] auto commit --- notes/Leetcode 题解.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/Leetcode 题解.md b/notes/Leetcode 题解.md index 8f51d164..cf67cdca 100644 --- a/notes/Leetcode 题解.md +++ b/notes/Leetcode 题解.md @@ -68,7 +68,7 @@ public int search(int key, int[] array) { } ``` -在实现时需要注意以下细节: +实现时需要注意以下细节: 1. 在计算 mid 时不能使用 mid = (l + h) / 2 这种方式,因为 l + h 可能会导致加法溢出,应该使用 mid = l + (h - l) / 2。