Skip to content

Commit e5ec0ad

Browse files
refactor 286
1 parent 99ac875 commit e5ec0ad

File tree

1 file changed

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

1 file changed

+0
-21
lines changed

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,6 @@
33
import java.util.LinkedList;
44
import java.util.Queue;
55

6-
/**
7-
* You are given a m x n 2D grid initialized with these three possible values.
8-
9-
-1 - A wall or an obstacle.
10-
0 - A gate.
11-
INF - Infinity means an empty room. We use the value 231 - 1 = 2147483647 to represent INF as you may assume that the distance to a gate is less than 2147483647.
12-
Fill each empty room with the distance to its nearest gate. If it is impossible to reach a gate, it should be filled with INF.
13-
14-
For example, given the 2D grid:
15-
INF -1 0 INF
16-
INF INF INF -1
17-
INF -1 INF -1
18-
0 -1 INF INF
19-
20-
After running your function, the 2D grid should be:
21-
3 -1 0 1
22-
2 2 1 -1
23-
1 -1 2 -1
24-
0 -1 3 4
25-
26-
*/
276
public class _286 {
287
public static class Solution1 {
298

0 commit comments

Comments
 (0)