会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
nil_f
博客园
首页
新随笔
联系
订阅
管理
2020年4月28日
leetcode 每日一题 16. 最接近的三数之和
摘要: 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)
公告