typestatusdateslugsummarytagscategoryiconpassword创建时间May 30, 2025 12:33 PM给定一个平衡括号字符串 S,按下述规则计算该字符串的分数:() 得 1 分。AB 得 A + B 分,其中 A 和 B 是平衡括号字符串。(A) 得 2 * A 分,其中 A 是平衡括号字符串。https://leetcode.cn/problems/score-of-parentheses/description/三、栈§3.4 合法括号字符串思路:将 ( 看成占位符,用数字 0 来表示📎 参考无