leetcode 10:正则表达式匹配

使用动态规划 bool isMatch(std::string s, std::string p) { std::vector<std::vector<bool>> match(s.length() + 2, std::vector<bool>(p.length() + 2, false)); match[1][1] = s[0] == p[0] || p[0] == '.';
相关文章
相关标签/搜索