![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Numbers
文章平均质量分 73
boegkpmlkvebevwa
这个作者很懒,什么都没留下…
展开
-
[LeetCode] 3Sum
Total Accepted: 12950 Total Submissions: 78829 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 s原创 2014-05-12 10:53:02 · 571 阅读 · 0 评论 -
[LeetCode] 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原创 2014-05-12 11:22:14 · 398 阅读 · 0 评论 -
[LeetCode] 3Sum Closest
Total Accepted: 9118 Total Submissions: 33975 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 intege原创 2014-05-12 10:29:42 · 404 阅读 · 0 评论 -
[LeetCoed] Longest Consecutive Sequence
Longest Consecutive Sequence Total Accepted: 17029 Total Submissions: 61041My Submissions Given an unsorted array of integers, find the length of the longest consecutive elements sequence原创 2014-08-15 12:18:50 · 351 阅读 · 0 评论 -
[LeetCode] Add Binary
Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100".原创 2014-09-04 12:58:52 · 430 阅读 · 0 评论