Skip to content

Commit e1c5160

Browse files
author
openset
committed
Add: test case
1 parent 2fef78b commit e1c5160

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

problems/smallest-range-i/smallest_range_i_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ func TestSmallestRangeI(t *testing.T) {
3030
k: 1,
3131
expected: 6,
3232
},
33+
{
34+
input: []int{18, 16, 12, 7, 9, 3, 5},
35+
k: 6,
36+
expected: 3,
37+
},
3338
}
3439
for _, tc := range tests {
3540
output := smallestRangeI(tc.input, tc.k)

0 commit comments

Comments
 (0)