Merge pull request #888 from hailincai/patch1101_01

0122 - 修改了Java dp方法的注释 bad data --> base data
This commit is contained in:
程序员Carl 2021-11-08 14:46:34 +08:00 committed by GitHub
commit c6fadbdfeb
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];