Merge pull request #888 from hailincai/patch1101_01
0122 - 修改了Java dp方法的注释 bad data --> base data
This commit is contained in:
commit
c6fadbdfeb
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue