摘要:
题目描述 给出含有n个整数的数组s,找出s中和加起来的和最接近给定的目标值的三个整数。返回这三个整数的和。你可以假设每个输入都只有唯一解。 例如,给定的整数 S = {-1 2 1 -4}, 目标值 = 1.↵↵ 最接近目标值的和为 2. (-1 + 2 + 1 = 2). Given an arr 阅读全文
posted @ 2020-04-23 22:34
鸭子船长
阅读(167)
评论(0)
推荐(0)
摘要:
15. 3Sum题目描述Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which 阅读全文
posted @ 2020-04-23 22:15
鸭子船长
阅读(180)
评论(0)
推荐(0)