class Solution { public: int m,n; int dx[4] = {0,0,1,-1}; int dy[4] = {1,-1,0,0}; bool vis[201][201] = { false }; int solve(vector<vector<char> >& grid) { m = grid.size(); n = grid[0].size(); int count = 0; for(int i = 0;i <...