摘要: #96 不同的二叉搜索树 https://leetcode-cn.com/problems/unique-binary-search-trees/ 总数 = 分别以每一个节点做根节点的种数相加。 F(n) = S(1) + S(2) + ... + S(n)。 S(i) = F(i的左子树) * F 阅读全文
posted @ 2020-06-05 20:49 Fflyqaq 阅读(155) 评论(0) 推荐(0) 编辑
摘要: #10 正则表达式匹配 https://leetcode-cn.com/problems/regular-expression-matching/ 本来想找用C#正则表达式做的题,而这道题是需要自己写正则。。。 下面那道是正则匹配问题 public static bool IsMatch(strin 阅读全文
posted @ 2020-06-05 19:36 Fflyqaq 阅读(192) 评论(0) 推荐(0) 编辑