From 4012e90b67ea5d6532ccd82d670dd92ba890f40f Mon Sep 17 00:00:00 2001 From: CyC2018 <1029579233@qq.com> Date: Fri, 6 Apr 2018 15:49:00 +0800 Subject: [PATCH] auto commit --- notes/算法.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notes/算法.md b/notes/算法.md index 488beede..2ddd1f1b 100644 --- a/notes/算法.md +++ b/notes/算法.md @@ -105,8 +105,8 @@ public class ThreeSumFast { while (l <= h) { int m = l + (h - l) / 2; if (target == nums[m]) return m; - else if (target > nums[m]) h = m - 1; - else l = m + 1; + else if (target > nums[m]) l = m + 1; + else h = m - 1; } return -1; }