摘要: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. 阅读全文
posted @ 2017-07-28 21:27 mstark 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 思考的方向不对,即使用了多于别人几倍的时间,也不一定能够达到终点。 我的错误的想法(可以跳过):在leetcode上面做的第四道题,走路一个很大的弯路,收到之前做过的 Container With Most Water 的思路的影响,自己也想到了可以使用两个指针从左右遍历数组, 然而自己在这里走偏了 阅读全文
posted @ 2017-07-28 21:20 mstark 阅读(200) 评论(0) 推荐(0) 编辑