c++ O(N) 4ms
\nclass Solution {\npublic:\n    bool escapeGhosts(vector<vector<int>>& ghosts, vector<int>& target) {\n        int d0 = abs(target[0]) + abs(target[1]);\n     
```\nclass Solution {\npublic:\n    bool escapeGhosts(vector<vector<int>>& ghosts, vector<int>& target) {\n        int d0 = abs(target[0]) + abs(target[1]);\n        \n        for (int i = 0; i < ghosts.size(); ++i) {\n            int d1 = abs(ghosts[i][0] - target[0]) + \n                     abs(ghosts[i][1] - target[1]);\n            if (d0 >= d1) return false;\n        }\n        \n        return true;\n    }\n};\n```
[]