Spiral matrix: Difference between revisions
Content added Content deleted
Alextretyak (talk | contribs) (Added 11l) |
Alextretyak (talk | contribs) m (→{{header|11l}}) |
||
Line 34: | Line 34: | ||
V c = 0 |
V c = 0 |
||
L(i) 0 .< n + n - 1 |
L(i) 0 .< n + n - 1 |
||
L |
L 0 .< (n + n - i) I/ 2 |
||
xy += d[i % 4] |
xy += d[i % 4] |
||
m[xy.x][xy.y] = c |
m[xy.x][xy.y] = c |