fix 167: clean up redundant code

This commit is contained in:
novahe
2021-04-27 12:57:45 +08:00
parent 8f1f1db6f2
commit 263ca6e3b7

View File

@ -13,7 +13,7 @@ func twoSum167(numbers []int, target int) []int {
j--
}
}
return []int{-1, -1}
return nil
}
// 解法二 不管数组是否有序,空间复杂度比上一种解法要多 O(n)