Cpp Easy Solution Memoization
\nclass Solution {\npublic:\n    bool match(string& s, string& p, int i, int j, vector<vector<int>>& v){\n        if(i==s.size()&&j==p.size())\n            retu
```\nclass Solution {\npublic:\n    bool match(string& s, string& p, int i, int j, vector<vector<int>>& v){\n        if(i==s.size()&&j==p.size())\n            return true;\n        else if(i==s.size()) \n            return (p[j]==\'*\'&& match(s,p,i,j+1,v));\n        else if(j==p.size())\n            return false;\n        \n        if(v[i][j]!=-1) return v[i][j];\n        \n        if(p[j]==\'*\')\n            return v[i][j]= (match(s,p,i,j+1,v)||match(s,p,i+1,j,v));\n        \n        if(p[j]==\'?\'||s[i]==p[j])\n            return v[i][j] = match(s,p,i+1,j+1,v);\n        \n        return false;\n    }\n    \n    bool isMatch(string s, string p) {\n       vector<vector<int>> v(s.size(), vector<int>(p.size(), -1));  \n       return match(s,p,0,0,v);\n    }\n};\n```
['Memoization', 'C', 'C++']