leetcode10_正则表达式匹配

1. 数组 2. 记dp[i][j]表示前i个源字符与前j个模式串字符是否匹配(含当前i,j这两个字符)spa class Solution { public: bool isMatch(string s, string p) { int len1 = s.length(), len2 = p.length(); vector<vector<int>> dp(len1 + 1, vect
相关文章
相关标签/搜索