摘要: 题目:给你一个只包含 '(' 和 ')' 的字符串,找出最长有效(格式正确且连续)括号子串的长度。 动态规划的详细思路和推倒过程写在注释了 class Solution { public: int longestValidParentheses(string s) { int max = 0; in 阅读全文
posted @ 2022-06-26 08:23 或多或少jlhou 阅读(49) 评论(0) 推荐(0)