[LeetCode] [C++] 20. Valid Parentheses
I used the data structure "Stack" here,
which is convenient to solve this problem.
When the parenthesis is a left parenthesis,
I push it into the stack.
And when the parenthesis is a right par
原创
2017-11-22 21:47:50 ·
169 阅读 ·
0 评论