【leetCode】44_通配符匹配

dp:spa class Solution { public: bool isMatch(string s, string p) { //tag 用於dp,tag[i][j]表明s的子串s[0,i-1] 能夠匹配 p的子串p[0,j-1]。 bool ** tag = new bool*[s.length() + 1]; for (int i
相關文章
相關標籤/搜索