Fork me on GitHub
摘要: Write a function to generate the generalized abbreviations of a word. Example: Given word = “word”, return the following list (order does not matter): 阅读全文
posted @ 2020-03-24 10:08 西西嘛呦 阅读(365) 评论(0) 推荐(0)
摘要: 给定一个平衡括号字符串 S,按下述规则计算该字符串的分数: () 得 1 分。AB 得 A + B 分,其中 A 和 B 是平衡括号字符串。(A) 得 2 * A 分,其中 A 是平衡括号字符串。 示例 1: 输入: "()"输出: 1示例 2: 输入: "(())"输出: 2示例 3: 输入: " 阅读全文
posted @ 2020-03-24 09:41 西西嘛呦 阅读(389) 评论(0) 推荐(0)