We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42e5a34 commit 6445bf9Copy full SHA for 6445bf9
src/main/java/com/fishercoder/solutions/_417.java
@@ -61,6 +61,7 @@ void dfs(int[][] matrix, boolean[][] visited, int height, int x, int y) {
61
}
62
63
public static class Solution2 {
64
+ /**This is my original solution on 3/25/2021, although brute force, it works.*/
65
public List<List<Integer>> pacificAtlantic(int[][] matrix) {
66
List<List<Integer>> result = new ArrayList<>();
67
if (matrix == null || matrix.length == 0 || matrix[0].length == 0) {
0 commit comments