Skip to content

Commit 1f33812

Browse files
committed
删减了309一维数组空间优化的部分注释
1 parent b18f227 commit 1f33812

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

problems/0309.最佳买卖股票时机含冷冻期.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,8 @@ class Solution {
189189
// 一维数组优化
190190
class Solution {
191191
public int maxProfit(int[] prices) {
192-
// dp[2]和dp[3]用来存储冷冻期的数据
193192
int[] dp=new int[4];
194-
// 0表示持有,1表示卖出
193+
195194
dp[0] = -prices[0];
196195
dp[1] = 0;
197196
for(int i = 1; i <= prices.length; i++){

0 commit comments

Comments
 (0)