Skip to content

Commit 52a64b1

Browse files
refactor 789
1 parent c9d2ec2 commit 52a64b1

File tree

1 file changed

+0
-16
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-16
lines changed

src/main/java/com/fishercoder/solutions/_789.java

-16
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 789. Escape The Ghosts
5-
*
6-
* You are playing a simplified Pacman game. You start at the point (0, 0), and your destination is
7-
* (target[0], target[1]). There are several ghosts on the map, the i-th ghost starts at (ghosts[i][0], ghosts[i][1]).
8-
*
9-
* Each turn, you and all ghosts simultaneously *may* move in one of 4 cardinal directions: north, east, west, or
10-
* south, going from the previous point to a new point 1 unit of distance away.
11-
*
12-
* You escape if and only if you can reach the target before any ghost reaches you (for any given moves the ghosts
13-
* may take.) If you reach any square (including the target) at the same time as a ghost, it doesn't count as an
14-
* escape.
15-
*
16-
* Return True if and only if it is possible to escape.
17-
*/
18-
193
public class _789 {
204

215
public static class Solution {

0 commit comments

Comments
 (0)