摘要: 链接:https://leetcode-cn.com/problems/biao-shi-shu-zhi-de-zi-fu-chuan-lcof/submissions/ 代码: class Solution { public: bool isNumber(string s) { if (s.emp 阅读全文
posted @ 2020-02-22 19:31 景云ⁿ 阅读(169) 评论(0) 推荐(0)
摘要: 链接:https://leetcode-cn.com/problems/zheng-ze-biao-da-shi-pi-pei-lcof/ 思路: 状态表示:f[i][j] 表示s[i,..]与p[j,...]匹配 状态转换: 1.p[j]是正常字符,f[i][j] = s[i] == p[j] & 阅读全文
posted @ 2020-02-22 18:36 景云ⁿ 阅读(215) 评论(0) 推荐(0)