![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LEETCODE
文章平均质量分 72
liyi_
这个作者很懒,什么都没留下…
展开
-
[leetcode] Regular Expression Matching
Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding element. The matching should cover the entire input原创 2015-01-15 09:24:54 · 502 阅读 · 0 评论 -
[leetcode] Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings. Solution: We need a template to store the current longest prefix string. The template will be updated in原创 2015-01-15 19:12:17 · 331 阅读 · 0 评论 -
[leetcode] Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all va原创 2015-01-17 13:46:10 · 389 阅读 · 0 评论 -
3Sum
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原创 2015-01-17 12:01:05 · 356 阅读 · 0 评论 -
[leetcode] Container With Most Water
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find原创 2015-01-15 14:19:46 · 361 阅读 · 0 评论