789. Escape The Ghosts.cpp
Code\n\nclass Solution \n{\n public:\n    bool escapeGhosts(vector<vector<int>>& ghosts, vector<int>& target) \n    {\n         int tar=abs(target[0])+abs(targe
**Code**\n```\nclass Solution \n{\n public:\n    bool escapeGhosts(vector<vector<int>>& ghosts, vector<int>& target) \n    {\n         int tar=abs(target[0])+abs(target[1]);\n         int n=ghosts.size();\n         for(int i=0;i<n;i++)\n         {\n             int temp=abs(ghosts[i][0]-target[0])+abs(ghosts[i][1]-target[1]);\n             if(temp<=tar)\n                  return false;\n         }\n       return true;\n    }\n};\n```
['C']