![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Stack
slbyzdgz
这个作者很懒,什么都没留下…
展开
-
LeetCode---Valid Parentheses、Min Stack、 Implement Stack using Queues
20.Valid ParenthesesGiven a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.An input string is valid if:Open brackets must be close...原创 2019-07-18 21:52:02 · 116 阅读 · 0 评论 -
LeetCode--- Next Greater Element I、Next Greater Element II
496.Next Greater Element IYou are given two arrays(without duplicates)nums1andnums2wherenums1’s elements are subset ofnums2. Find all the next greater numbers fornums1's elements in the co...原创 2019-07-19 21:06:03 · 168 阅读 · 0 评论 -
LeetCode--- Baseball Game、Backspace String Compare、Remove Outermost Parentheses、1047
682.Baseball GameYou're now a baseball game point recorder.Given a list of strings, each string can be one of the 4 following types:Integer(one round's score): Directly represents the number o...原创 2019-07-20 21:43:48 · 139 阅读 · 0 评论 -
LeetCode--- Evaluate Reverse Polish Notation、Minimum Add to Make Parentheses Valid
150.Evaluate Reverse Polish NotationEvaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another expression....原创 2019-07-21 21:08:57 · 91 阅读 · 0 评论