Skip to content

Commit 6daa4f0

Browse files
0286-walls-and-gates.java - Removed an unused variable
1 parent 198f27b commit 6daa4f0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Diff for: java/0286-walls-and-gates.java

-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ public void wallsAndGates(int[][] rooms) {
1414
}
1515
if (q.size() == 0) return;
1616
int[][] dirs = { { -1, 0 }, { 0, -1 }, { 1, 0 }, { 0, 1 } };
17-
int dis = 0;
1817
while (!q.isEmpty()) {
19-
++dis;
2018
int[] cur = q.poll();
2119
int row = cur[0];
2220
int col = cur[1];

0 commit comments

Comments
 (0)