parent
b355d79c46
commit
1174602e91
|
|
@ -182,7 +182,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