C++ |  Simple Distance | 0ms
```\n bool escapeGhosts(vector>& g, vector& t) {\n        int n=g.size();\n        if(n==0)\n            return true;\n        int dist=abs(t[0])+abs(t[1]);\n  
```\n bool escapeGhosts(vector<vector<int>>& g, vector<int>& t) {\n        int n=g.size();\n        if(n==0)\n            return true;\n        int dist=abs(t[0])+abs(t[1]);\n        \n        for(int i=0;i<n;++i){\n            if((abs(t[0]-g[i][0])+abs(t[1]-g[i][1]))<=dist)\n                return false;\n        }\n        return true;\n    }\n\t
[]