摘要: 问题: 给定一个字符串s,和一个模式串p,求p是否能匹配s 正则表达支持以下两种符号 '.' Matches any single character. '*' Matches zero or more of the preceding element. Note: s could be empty 阅读全文
posted @ 2020-09-10 19:11 habibah_chang 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 参考:https://labuladong.gitbook.io/algo/dong-tai-gui-hua-xi-lie/dong-tai-gui-hua-zhi-bo-yi-wen-ti 问题: 给定一堆石子的得分。A和B两个人进行如下游戏, 轮流,从石堆的两边选择一个石子,最终获得得分最大的人 阅读全文
posted @ 2020-09-10 11:42 habibah_chang 阅读(97) 评论(0) 推荐(0) 编辑