摘要:
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/longest-valid-parentheses 题目描述 给你一个只包含 '(' 和 ')' 的字符串,找出最长有效(格式正确且连续)括号子串的长度。 示例 1: 输入:s = "(()"输出: 阅读全文
posted @ 2022-03-22 09:59
过客匆匆,沉沉浮浮
阅读(128)
评论(0)
推荐(0)
摘要:
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/remove-colored-pieces-if-both-neighbors-are-the-same-color 题目描述 总共有 n 个颜色片段排成一列,每个颜色片段要么是 'A' 要么是 ' 阅读全文
posted @ 2022-03-22 08:32
过客匆匆,沉沉浮浮
阅读(121)
评论(0)
推荐(0)