标签:
题目链接:https://leetcode.com/problems/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 valid but "(]" and "([)]" are
not.
思路:
用栈,easy。。
算法:
标签:
原文地址:http://blog.csdn.net/yeqiuzs/article/details/51590938