mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 08:50:15 +08:00
Merge pull request #888 from hailincai/patch1101_01
0122 - 修改了Java dp方法的注释 bad data --> base data
This commit is contained in:
@ -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];
|
||||
|
||||
|
Reference in New Issue
Block a user