摘要: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example 1: Input: 阅读全文
posted @ 2018-10-27 22:42 皇家大鹏鹏 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Op 阅读全文
posted @ 2018-10-27 21:00 皇家大鹏鹏 阅读(125) 评论(0) 推荐(0) 编辑