Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 13093f8

Browse files
committed
967 修改了小瑕疵。
1 parent 96444be commit 13093f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ func numsSameConsecDiff(N int, K int) []int {
44
nums := []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
55
if N == 1 {
66
// when N is 1, whatever K is, the answer is nums
7-
return nums[:]
7+
return nums
88
}
99

1010
res := nums[1:] // when N>1, delete 0

0 commit comments

Comments
 (0)