diff --git a/notes/Leetcode 题解 - 双指针.md b/notes/Leetcode 题解 - 双指针.md index b24ab780..bc99b71b 100644 --- a/notes/Leetcode 题解 - 双指针.md +++ b/notes/Leetcode 题解 - 双指针.md @@ -78,7 +78,7 @@ Explanation: 1 * 1 + 2 * 2 = 5 public boolean judgeSquareSum(int target) { if (target < 0) return false; int i = 0, j = (int) Math.sqrt(target); - while (i <= j) { + while (i <= j) { //只用判断右大于左 int powSum = i * i + j * j; if (powSum == target) { return true;