Skip to content

Commit bf9fdd0

Browse files
add comment in 1091
1 parent 4a50395 commit bf9fdd0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
public class _1091 {
77
public static class Solution1 {
8+
//you can count in the normal four directions first, then count the diagonal ones to form this array
89
int[] directions = new int[]{0, 1, 1, 0, -1, 1, -1, -1, 0};
910

1011
public int shortestPathBinaryMatrix(int[][] grid) {

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