摘要: 1 class Solution { 2 public: 3 /** 4 * @param s: A string 5 * @param p: A string includes "." and "*" 6 * @return: A boolean 7 ... 阅读全文
posted @ 2015-07-05 23:53 jianchao-li 阅读(295) 评论(0) 推荐(0) 编辑
摘要: This problem has a typical solution using Dynamic Programming. We define the state P[i][j] to be true if s[0..i) matches p[0..j) and false otherwise. ... 阅读全文
posted @ 2015-07-05 23:40 jianchao-li 阅读(408) 评论(0) 推荐(0) 编辑