We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65cb45e commit 86d2ab4Copy full SHA for 86d2ab4
go/leetcode/34.在排序数组中查找元素的第一个和最后一个位置.go
@@ -36,7 +36,7 @@
36
func searchRange(nums []int, target int) []int {
37
ret := []int{-1, -1}
38
n := len(nums)
39
- if n <= 0 {
+ if n <= 0 {
40
return ret
41
}
42
left := 0
0 commit comments