class Solution { public: bool dfs(char* matrix, int row, int col, int rows, int cols, char* str, int len, vector<vector<bool> >& visit) { if (str[len] == '\0') return true; if (row < 0 || row >= rows || col < 0 || col >= cols) return false; const int dx[4] = {-1,0,1,0}; c...