We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cdedcb commit 31160e6Copy full SHA for 31160e6
leetcode_java/src/main/java/LeetCodeJava/BFS/ShortestBridge.java
@@ -132,6 +132,13 @@ public int shortestBridge_1_2(int[][] grid) {
132
133
// bfsQueue for BFS on land cells of island A; secondBfsQueue for BFS on water
134
// cells.
135
+ /**
136
+ * NOTE !!!
137
+ *
138
+ * -> bfsQueue for BFS on land cells of island A
139
140
+ * -> secondBfsQueue for BFS on water cell
141
+ */
142
List<int[]> bfsQueue = new ArrayList<>();
143
List<int[]> secondBfsQueue = new ArrayList<>();
144
bfsQueue.add(new int[] { firstX, firstY });
0 commit comments