Stack标题列 1列 2列 3列 4列 5列 6列 7#TitleSolutionTimeSpaceDifficultyTagNote0020Valid ParenthesesC++ PythonO(n)O(n)Easy0032Longest Valid ParenthesesC++ PythonO(n)O(1)Hard0071Simplify PathC++ PythonO(n)O(n)Medium0084Largest Rectangle in HistogramC++ PythonO(n)O(n)HardMono Stack, DP0085Maximal RectangleC++ PythonO(m * n)O(n)HardEPIMono Stack0101Symmetric TreeC++ PythonO(n)O(h)Easy0150Evaluate Reverse Polish NotationC++ PythonO(n)O(n)Medium0155Min StackC++ PythonO(n)O(1)Easy0224Basic CalculatorC++ PythonO(n)O(n)Hard0227Basic Calculator IIC++ PythonO(n)O(n)Medium0232Implement Queue using StacksC++ PythonO(1), amortizedO(n)EasyEPI, LintCode0255Verify Preorder Sequence in Binary Search TreeC++ PythonO(n)O(1)Medium🔒0272Closest Binary Search Tree Value IIC++ PythonO(h + k)O(h)Hard🔒0331Verify Preorder Serialization of a Binary TreeC++ PythonO(n)O(1)Medium0341Flatten Nested List IteratorC++ PythonO(n)O(h)Medium🔒Iterator0385Mini ParserC++ PythonO(n)O(h)Medium0394Decode StringC++ PythonO(n)O(n)Medium0439Ternary Expression ParserC++ PythonO(n)O(1)Medium🔒0456132 PatternC++ PythonO(n)O(n)Medium0496Next Greater Element IC++ PythonO(m + n)O(m + n)EasyMono Stack0503Next Greater Element IIC++ PythonO(n)O(n)MediumMono Stack0636Exclusive Time of FunctionsC++ PythonO(n)O(n)Medium0682Baseball GameC++ PythonO(n)O(n)Easy0726Number of AtomsC++ PythonO(n)O(n)Hard0735Asteroid CollisionC++ PythonO(n)O(n)Medium0736Parse Lisp ExpressionC++ PythonO(n^2)O(n^2)Hard0739Daily TemperaturesC++ PythonO(n)O(n)Medium0770Basic Calculator IVC++ Pythonadd: O(d * t) sub: O(d * t) mul: O(d * t^2) eval: O(d * t) to_list: O(d * tlogt)O(e + d * t)Hard0772Basic Calculator IIIC++ PythonO(n)O(n)Hard0853Car FleetC++ PythonO(nlogn)O(n)Medium0856Score of ParenthesesC++ PythonO(n)O(1)Medium0872Leaf-Similar TreesC++ PythonO(n)O(h)Easy0895Maximum Frequency StackC++ PythonO(1)O(n)HardHash0901Online Stock SpanC++ PythonO(n)O(n)Medium0921Minimum Add to Make Parentheses ValidC++ PythonO(n)O(1)Medium0946Validate Stack SequencesC++ PythonO(n)O(n)Medium