C++ solution for beginners
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    bool escapeGhosts(vector<vector<int>>& ghosts, vector<int>& target) {\n        int time_to_escape = abs(target[0]) + abs(target[1]);\n        bool flag = false;\n        int time_for_ghosts = 0;\n        for(int i = 0; i < ghosts.size(); i++){\n            time_for_ghosts = abs(ghosts[i][0] - target[0]) + abs(ghosts[i][1] - target[1]);\n            if(time_to_escape < time_for_ghosts){\n                flag = true;\n            }\n            else{\n                flag = false;\n                break;\n            }\n\n        }\n\n        return flag;\n\n    }\n};\n```
['C++']