Skip to content

Commit 263ca6e

Browse files
committed
fix 167: clean up redundant code
1 parent 8f1f1db commit 263ca6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leetcode/0167.Two-Sum-II---Input-array-is-sorted/167. Two Sum II - Input array is sorted.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func twoSum167(numbers []int, target int) []int {
1313
j--
1414
}
1515
}
16-
return []int{-1, -1}
16+
return nil
1717
}
1818

1919
// 解法二 不管数组是否有序,空间复杂度比上一种解法要多 O(n)

0 commit comments

Comments
 (0)