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.
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?
I have the same problem with python. It seems my code is returning correct result, but it still fails, e.g. with random test [3, 19, 5, 12, -4, -4, 6, 9, 12] I get this : {'pos': [1, 3], 'peaks': [19, 12]} should equal {'pos': [1, 3, 7], 'peaks': [19, 12, 9]}
My code does not return arr[7] (which is 9), because it not a peak - but the error message says it should? Or is there something in the instructions that I'm missing?