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

Diff for: src/main/java/com/fishercoder/solutions/_1091.java

+1
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)