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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy