qingcheng奕  

2014年1月7日

摘要: http://oj.leetcode.com/problems/regular-expression-matching/问题给想复杂了,只有p中可以含有. *,s中的字符都是确定的。想了好久,最终还是参考了网上的答案。等我再想想。#include #include #include using namespace std;class Solution {public: bool isMatch(const char *s, const char *p) { if (s == NULL || p == NULL) return false; if ... 阅读全文
posted @ 2014-01-07 16:20 qingcheng奕 阅读(170) 评论(0) 推荐(0) 编辑