- 博客(4)
- 收藏
- 关注
原创 Leetcode32. Longest Valid Parentheses
题目Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the longest valid parentheses substring is
2017-09-29 20:03:41 167
原创 LeetCode42. 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,0,2,1,0,1,3,
2017-09-22 16:46:18 198
原创 LeetCode34. Search for a Range
题目Given an array of integers sorted in ascending order, find the starting and ending position of a given target value.Your algorithm’s runtime complexity must be in the order of O(log n).If the target
2017-09-15 16:30:59 282
原创 LeetCode11. 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,
2017-09-07 20:16:08 175
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人