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.
Well, about that
Done!
+1 lkcelaks
[[]] The special case [[]] should be explicit in the kata description
Please consider explicitly stating that [[]] is to be considered a 0x0 matrix, because this is very surprising. It breaks the assumption that the lengths of the inner lists should be the same as the length of the outer list, which holds for all other 'n'.
Done
I've figured it out, thanks to the help of one Yury Tarabanko. You can see the thread here.
I've encorporated our findings into the kata description. The tests still stand as correct, but the descriptions I found before were incomplete. Thanks for bringing this to my attention! ^^
Yeah-- in the spec (or MDN's description), that's what it says, but in-browser, it works as the tests expect. I'll look into it and see if I can fix the description, but until then, the tests do work correctly.
Sure thing :)
Thanks, I changed it to
9/13/2014
.I will specify that the input array must not be modified. Thanks for your help!
There have been already a discussion about that, it's a good point, however
[]
is not eather a 0x0 matrix, it's just an empty array, so I think, for this exersice, we could think the[[]]
as an 0x0 matrix. I hove you enjoy solving this kata.I can't reproduce your bug; are you still struggling?
Yeah. You're right. I'll change that.
Yes, that is correct.
This would be invalid. The triangle would no longer be made of smaller triangles. In the above scenario the triangle would look like this:
the middle of the triangle would be a quadrilateral