Skip to content

Commit 6445bf9

Browse files
add comments
1 parent 42e5a34 commit 6445bf9

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ void dfs(int[][] matrix, boolean[][] visited, int height, int x, int y) {
6161
}
6262

6363
public static class Solution2 {
64+
/**This is my original solution on 3/25/2021, although brute force, it works.*/
6465
public List<List<Integer>> pacificAtlantic(int[][] matrix) {
6566
List<List<Integer>> result = new ArrayList<>();
6667
if (matrix == null || matrix.length == 0 || matrix[0].length == 0) {

0 commit comments

Comments
 (0)