Now that we have mastered zigzag order, how about the spiral order? For example, the spiral order for a 4 5 array is:
0 1 2 3 4 13 14 15 16 5 12 19 18 17 6 11 10 9 8 7 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
