4 ms·
not sure if you were aware, but you could have initialized the grid like this: grid = Int8[0 0 0 5 4 6 0 0 9 0 2 0 0 0 0 0 0 7
by dnautics 7y ago
not sure if you were aware, but you could have initialized the grid like this:
grid =
Int8[0 0 0 5 4 6 0 0 9
0 2 0 0 0 0 0 0 7
0 0 3 9 0 0 0 0 4
9 0 5 0 0 0 0 7 0
7 0 0 0 0 0 0 2 0
0 0 0 0 9 3 0 0 0
0 5 6 0 0 8 0 0 0
0 1 0 0 3 9 0 0 0
0 0 0 0 0 0 8 0 6]
- stabbles 7y agoInt8[0 0 0 5 4 6 0 0 9; 0 2 0 0 0 0 0 0 7; 0 0 3 9 0 0 0 0 4; 9 0 5 0 0 0 0 7 0; 7 0 0 0 0 0 0 2 0; 0 0 0 0 9 3 0 0 0; 0 5 6 0 0 8 0 0 0; 0 1 0 0 3 9 0 0 0; 0 0 0 0 0 0 8 0 6]