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 bd54c0a

Browse files
author
openset
committed
Add: case
1 parent 7ed025a commit bd54c0a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

‎problems/3sum/3sum_test.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,15 @@ func TestThreeSum(t *testing.T) {
2424
expected: [][]int{
2525
{0, 0, 0},
2626
},
27-
}, {
28-
input: []int{-2, 0, 0, 2, 2},
27+
},
28+
{
29+
input: []int{-2, 0, 0, 2, 2, 2},
30+
expected: [][]int{
31+
{-2, 0, 2},
32+
},
33+
},
34+
{
35+
input: []int{-2, 0, 0, 2, 2, 2, 2},
2936
expected: [][]int{
3037
{-2, 0, 2},
3138
},

0 commit comments

Comments
(0)

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