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.
I checked the test cases in de Haskell translation.
The following is in de code:
shouldBe
PickedPeaks {pos = [2,4], peaks = [3,2]}Therefor I can't reproduce the error.
Not sure what language you did it in. In C++ this tests gives the expected result ( [2,1,3,1,2,2,2,2,1] => {pos = [2,4], peaks = [3,2]} )