diff --git a/problems/1049.最后一块石头的重量II.md b/problems/1049.最后一块石头的重量II.md index 2fdaaa6f..0ffd6a3e 100644 --- a/problems/1049.最后一块石头的重量II.md +++ b/problems/1049.最后一块石头的重量II.md @@ -166,7 +166,7 @@ class Solution { //初始化dp数组 int[] dp = new int[target + 1]; for (int i = 0; i < stones.length; i++) { - //采用倒叙 + //采用倒序 for (int j = target; j >= stones[i]; j--) { //两种情况,要么放,要么不放 dp[j] = Math.max(dp[j], dp[j - stones[i]] + stones[i]);