Skip to content

Commit ce08416

Browse files
aQuaaQua
aQua
authored and
aQua
committed
229 finish
1 parent e5665a1 commit ce08416

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

Algorithms/0229.majority-element-ii/majority-element-ii_test.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func Test_Problem0229(t *testing.T) {
2929

3030
question{
3131
para{
32-
[]int{1, 1, 1, 2, 2, 3, 3, 3},
32+
[]int{1, 2, 3, 1, 1, 3, 3, 2},
3333
},
3434
ans{
3535
[]int{1, 3},
@@ -38,10 +38,19 @@ func Test_Problem0229(t *testing.T) {
3838

3939
question{
4040
para{
41-
[]int{1, 3},
41+
[]int{0, 3, 4, 0},
4242
},
4343
ans{
44-
[]int{1, 3},
44+
[]int{0},
45+
},
46+
},
47+
48+
question{
49+
para{
50+
[]int{1},
51+
},
52+
ans{
53+
[]int{1},
4554
},
4655
},
4756

0 commit comments

Comments
 (0)