Skip to content

Commit f5f2382

Browse files
aQuaaQua
aQua
authored and
aQua
committed
helper 修改细节
1 parent d123fa3 commit f5f2382

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Algorithms/0121.best-time-to-buy-and-sell-stock/best-time-to-buy-and-sell-stock_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ func Test_Problem0121(t *testing.T) {
4343
a, p := q.ans, q.para
4444
fmt.Printf("~~%v~~\n", p)
4545

46-
ast.Equal(a.one, maxProfit(p. ), "输入:%v", p)
46+
ast.Equal(a.one, maxProfit(p.prices ), "输入:%v", p)
4747
}
4848
}

helper.v3/problem.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func Test_%s(t *testing.T) {
181181
a, p := q.ans, q.para
182182
fmt.Printf("~~%s~~\n", p)
183183
184-
ast.Equal(a.one, %s(p. ), "输入:%s", p)
184+
ast.Equal(a.one, %s(p ), "输入:%s", p)
185185
}
186186
}
187187
`

0 commit comments

Comments
 (0)