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.
Nice mathy kata, great to have fun with.
python new test framework is required. updated in this fork
Rust translation
Order of points does not matter.
I'm seeing a similar issue with failures related to order of array elements as well
It says in the instructions that the order of the points can be arbitrary, however I'm getting e.g. this error from random tests: [[0, 0, 3], [0, 1, 2], [0, 2, 1], [0, 3, 0], [1, 0, 2], [1, 1, 1], [1, 2, 0], [2, 0, 1], [2, 1, 0], [3, 0, 0]] should equal [[3, 0, 0], [2, 1, 0], [1, 2, 0], [0, 3, 0], [2, 0, 1], [1, 1, 1], [0, 2, 1], [1, 0, 2], [0, 1, 2], [0, 0, 3]]. How should I order the points?
Approved
(Also added random tests)
Very nice solution!!
I am crazy about this solutions.
Python and CoffeeScript translations:
http://www.codewars.com/kumite/553d1b572f26d22833000080
http://www.codewars.com/kumite/553d343b8c789c4a8e0000a2
Thanks for the comment - the order of the points can be arbitrary, and the test does a sort to allow this.
I'll add it to the description.
It's not clear from the description that the order of the points should be lexicographical.