Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Duplicate - neither this kata, nor the one linked in the comment below should ever be approved.
JS: I have the same problem using an array, either have 501 length or fail the 500 user name. Any pointers?
Note that this kata is a duplicate of https://www.codewars.com/kata/print-a-matrix-in-spiral-form so only one should be kept.
This one needs random tests just like the other one though. So none of them should be approved right now.
No, it's not.
Needs random tests. Because this.
Also duplicate of https://www.codewars.com/kata/the-clockwise-spiral
As shnere said: It is different. "The input matrix is nxn for that kata, in this case it's nxm."
So it is no duplicate and the issue is closed right now!
I can't imagine that making much of a practical difference in the code, besides change one or two variables.
Thanks for the feedback, it's similar to the kata you showed there but that one creates a matrix from a parameter and in this case the matrix is given and you need to show the "path" that needs to be traveled.
The example is showing
[1,2,3,6,9,8,7,4,5] =
[
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]
You start top left to the right, then go down, then left, then up and start again to the right.
Didn't see that one, the difference is that the input matrix is nxn for that kata, in this case it's nxm.
Duplicate: http://www.codewars.com/kata/snail
I think it may be a doublon of this: http://www.codewars.com/kata/spiral-of-numbers
But it is not clear what you mean by spiral order.
In your exemple, I don't see how [1,2,3,6,9,8,7,4,5] =
[
[1,2,3]
[6,8,9]
[7,4,5]
]
is supposed to be a spiral. So I may also be missing something and your kata may be different of the kata mentionned above.