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] == '.';
相關文章
相關標籤/搜索