摘要: 32: 最长有效括号 想着要用动态规划却不会用。。。 抄别人方法 class Solution(object): def longestValidParentheses(self, s): """ :type s: str :rtype: int """ n = len(s) stack = [] 阅读全文
posted @ 2021-09-11 17:41 yi术家 阅读(45) 评论(0) 推荐(0)