Skip to content

Commit f765c2b

Browse files
committed
for grid traversal
1 parent 33c2328 commit f765c2b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: directions.cpp

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// 8 - D
2+
array<int,8>X{-1,-1,-1,0,0 ,1,1,1};
3+
array<int,8>Y{-1, 0, 1,1,-1,1,-1,0};
4+
5+
6+
// 4 - D
7+
8+
array<int,4>X{-1,1,0,0};
9+
array<int,4>Y{0,0,-1,1};
10+
11+
12+

0 commit comments

Comments
 (0)