LeetCode
文章平均质量分 77
傲慢灬
这个人很懒,什么都没有写。(o゜▽゜)o☆
展开
-
[LeetCode] 3Sum 三数之和 Python
刚开始刷题,各方面都觉得很不成熟,总是被Time Limited,特此总结下失败的思维和成功的思维。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 o原创 2017-07-24 15:24:32 · 3532 阅读 · 1 评论 -
[LeetCode] 3Sum Closest 最近的三数之和 Python
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 w原创 2017-07-24 16:31:37 · 1366 阅读 · 0 评论 -
[LeetCode] Trapping Rain Water 三种方案 Python
Trapping Rain Water:Given 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.For example, Given [0,1,原创 2017-07-25 15:21:38 · 758 阅读 · 0 评论 -
[LeetCode] Longest Substring Without Repeating Characters Python
题目:Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb", the answer i原创 2018-01-24 03:46:35 · 617 阅读 · 0 评论