摘要: 1.暴力法 思路: 遍历枚举出每一种情况,找到最接近的。 代码: class Solution: def threeSumClosest(self, nums: List[int], target: int) -> int: minCom = abs(nums[0] + nums[1] + nums 阅读全文
posted @ 2020-04-28 11:09 nil_f 阅读(124) 评论(0) 推荐(0)