mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-09 03:34:02 +08:00
修改了Java dp方法的注释 bad data --> base data
修改了Java dp方法的注释 bad data --> base data
This commit is contained in:
@ -154,7 +154,7 @@ class Solution { // 动态规划
|
|||||||
// [天数][是否持有股票]
|
// [天数][是否持有股票]
|
||||||
int[][] dp = new int[prices.length][2];
|
int[][] dp = new int[prices.length][2];
|
||||||
|
|
||||||
// bad case
|
// base case
|
||||||
dp[0][0] = 0;
|
dp[0][0] = 0;
|
||||||
dp[0][1] = -prices[0];
|
dp[0][1] = -prices[0];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user