Talk:Spiral matrix: Difference between revisions

m
(elaborate on J solution)
Line 5:
== J ==
 
Unlike the concise solution to [[Talk:Zig Zag#epilogue|ZigZag]], this [[Spiral:#J|J function]] works entirely on a list, until the very end, when it reshapes the 1D list into the 2D array.
 
So if <tt>SPIRAL</tt>:
Anonymous user