mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-06 09:23:19 +08:00
fix 167: clean up redundant code
This commit is contained in:
@ -13,7 +13,7 @@ func twoSum167(numbers []int, target int) []int {
|
|||||||
j--
|
j--
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return []int{-1, -1}
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// 解法二 不管数组是否有序,空间复杂度比上一种解法要多 O(n)
|
// 解法二 不管数组是否有序,空间复杂度比上一种解法要多 O(n)
|
||||||
|
Reference in New Issue
Block a user