
Two Points
Peng_maple
这个作者很懒,什么都没留下…
展开
-
[LeetCode] 15. 3Sum
3SumGiven 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 gives the sum of zero.Note:The solution set must not c...原创 2019-03-26 20:55:00 · 140 阅读 · 0 评论 -
[LeetCode] 16. 3Sum Closest
3Sum ClosestGiven an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You may assume that each...原创 2019-03-27 09:46:33 · 159 阅读 · 0 评论 -
[LeetCode] 18. 4Sum
4SumGiven an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum o...原创 2019-03-27 10:28:36 · 168 阅读 · 0 评论 -
[LeetCode] 42. Trapping Rain Water
Trapping Rain WaterGiven n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Example:Input: [0,1,0,2,1,...原创 2019-03-31 21:25:33 · 192 阅读 · 0 评论 -
[leetcode] 76. Minimum Window Substring
Minimum Window SubstringGiven a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).Example:Input: S = “ADOBECODEBANC”, T = “ABC”Ou...原创 2019-07-21 15:09:25 · 135 阅读 · 0 评论