C++|| Race to the end
```\n//i just put on a race condition of who will reach the target first if any ghost has \n//a distance that is less than the target compared to our distance t
```\n//i just put on a race condition of who will reach the target first if any ghost has \n//a distance that is less than the target compared to our distance then we can never make it\n//since a ghost will always be waiting for us \n bool escapeGhosts(vector<vector<int>>& ghosts, vector<int>& target) {\n      int myd=abs(target[0])+abs(target[1]);\n      int gh=0;\n      for(int i=0;i<ghosts.size();i++)\n      {\n          if(ghosts[i][0]>=target[0])\n          {\n              gh=ghosts[i][0]-target[0];\n          }\n          else{\n              gh=target[0]-ghosts[i][0];\n          }\n          if(ghosts[i][1]>=target[1])\n          {\n              gh+=ghosts[i][1]-target[1];\n          }\n          else{\n              gh+=target[1]-ghosts[i][1];\n          }\n          if(gh<=myd)return false;\n      }\n      return true;\n    }
[]