
hash
文章平均质量分 53
二喵棒棒哒
算法 大数据 区块链 硕士在读
github:https://github.com/zslomo
展开
-
3 sums题解
题干: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note: Elements in a triplet (a,b,c) must原创 2016-01-31 21:34:50 · 492 阅读 · 0 评论 -
Two sum题解
题干: Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, whe原创 2016-01-31 21:20:45 · 391 阅读 · 0 评论 -
3Sum Closest题解
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. You may assume that each input would have exactly原创 2016-01-31 22:00:37 · 523 阅读 · 0 评论