Easiest solution in c++:simplest one
class Solution {\npublic:\n\n    bool escapeGhosts(vector>& ghosts, vector& target) \n    {\n        int needed=0;\n        needed=abs(target[0])+abs(target[1])
class Solution {\npublic:\n\n    bool escapeGhosts(vector<vector<int>>& ghosts, vector<int>& target) \n    {\n        int needed=0;\n        needed=abs(target[0])+abs(target[1]);\n        for(int i=0;i<ghosts.size();i++)\n        {\n            int cnt=0;\n            cnt=abs(ghosts[i][0]-target[0])+abs(ghosts[i][1]-target[1]);\n            if(cnt<=needed)\n            {\n                return 0;\n            }\n        }\n        return 1;\n    }\n};
['Math', 'C']