Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6366e9f

Browse files
committed
Add: test case
1 parent 3ecd2bc commit 6366e9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎problems/maximum-product-of-three-numbers/maximum_product_of_three_numbers_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ func TestMaximumProduct(t *testing.T) {
2121
input: []int{-2, -1, 0, 2, 3},
2222
expected: 6,
2323
},
24+
{
25+
input: []int{-1, -2, -3, 5, 4, 3, 2, 1},
26+
expected: 60,
27+
},
2428
}
2529
for _, tc := range tests {
2630
output := maximumProduct(tc.input)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /