修改了Java dp方法的注释 bad data --> base data

修改了Java dp方法的注释 bad data --> base data
This commit is contained in:
hailincai 2021-11-01 07:41:14 -04:00 committed by GitHub
parent 1244f1d513
commit 60442907e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class Solution { // 动态规划
// [天数][是否持有股票]
int[][] dp = new int[prices.length][2];
// bad case
// base case
dp[0][0] = 0;
dp[0][1] = -prices[0];