diff --git a/notes/Leetcode 题解.md b/notes/Leetcode 题解.md index 1b89f548..11ae7b97 100644 --- a/notes/Leetcode 题解.md +++ b/notes/Leetcode 题解.md @@ -1239,7 +1239,7 @@ public int numSquares(int n) { continue; } marked[next] = true; - queue.add(cur - s); + queue.add(next); } } }