栈
unshaven111
这个作者很懒,什么都没留下…
展开
-
32. Longest Valid Parentheses
Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring. Example 1: Input: “(()” Output: 2 Explanation: The longest valid pa...原创 2018-11-22 19:51:48 · 72 阅读 · 0 评论 -
84. Largest Rectangle in Histogram
Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. Above is a histogram where width of each b...原创 2018-11-22 21:23:52 · 84 阅读 · 0 评论