Leetcode 32.最长有效括号

最长有效括号 问题描述 给定一个只包含 '(' 和 ')' 的字符串,找出最长的包含有效括号的子串的长度。html 示例 1:post 输入: "(()" 输出: 2 解释: 最长有效括号子串为 "()" 示例 2:spa 输入: ")()())" 输出: 4 解释: 最长有效括号子串为 "()()"code 来源:力扣(LeetCode) 连接:https://leetcode-cn.com/p
相关文章
相关标签/搜索