动规 class Solution { public: bool isMatch(const string s, const string p, int i, int j){ if(p[j - 1] == '.') return true; return s[i - 1] == p[j - 1]; } bool match(string s, string p) { int m = s.length(), n = p.length(); bool dp[m + 1][n + 1]; mems...