c++ | easy | fast
\n\n# Code\n\nclass Solution {\npublic:\n   bool escapeGhosts(vector<vector<int>>& ghosts, vector<int>& t) {\n        int d = abs(t[0]) + abs(t[1]);\n        fo
\n\n# Code\n```\nclass Solution {\npublic:\n   bool escapeGhosts(vector<vector<int>>& ghosts, vector<int>& t) {\n        int d = abs(t[0]) + abs(t[1]);\n        for(auto g: ghosts)\n            if (d >= abs(t[0] - g[0]) + abs(t[1] - g[1]))\n                return false;\n        return true;\n    }\n};\n```
['C++']