
leetcode栈
葱shen
爱技术,爱学习,爱游戏~
展开
-
[leetcode] 【栈】 20. 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原创 2016-06-16 15:56:00 · 213 阅读 · 0 评论 -
[leetcode] 【栈】 32. 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 "()",原创 2016-06-16 16:08:25 · 268 阅读 · 0 评论 -
[leetcode] 【栈】 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 o原创 2016-06-16 16:48:59 · 211 阅读 · 0 评论 -
[leetcode] 【栈】150. Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another expression.Some examples: ["2", "1"原创 2016-06-16 18:54:18 · 207 阅读 · 0 评论