Skip to content

Commit a075014

Browse files
committed
Update best-time-to-buy-and-sell-stock-iv_test.go
1 parent e6d344a commit a075014

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

best-time-to-buy-and-sell-stock-iv/best-time-to-buy-and-sell-stock-iv_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ func Test_maxProfit(t *testing.T) {
2323
{
2424
name: "test case 1",
2525
args: args{
26-
k: 2,
27-
prices: []int{2, 4, 1},
26+
k: 1,
27+
prices: []int{1, 8, 3, 10, 5},
2828
},
29-
want: 2,
29+
want: 9,
3030
},
3131
}
3232
for _, tt := range tests {

0 commit comments

Comments
 (0)