Easy to understand with Explanation
\nclass Solution {\npublic:\n    bool escapeGhosts(vector<vector<int>>& ghosts, vector<int>& target) {\n        int dist=abs(target[0])+abs(target[1]); //distan
```\nclass Solution {\npublic:\n    bool escapeGhosts(vector<vector<int>>& ghosts, vector<int>& target) {\n        int dist=abs(target[0])+abs(target[1]); //distance of target from the starting position of pacman.\n        // to escape the pacman from all the ghost we must have reach the target before the ghost\n        // it possible only if the distance of target from starting position is less than the all the ghost \n\t\t//distance from target...if its not then we not escape from the ghost becoz it reach target before pacman and stay there.\n        for(int i=0;i<ghosts.size();i++){\n            int ghostdist=abs(target[0]-ghosts[i][0])+abs(target[1]-ghosts[i][1]);\n            if(dist>=ghostdist){\n                return false;\n            }\n        }\n        return true;\n        \n    }\n};\n```
[]