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.
Just want to mention that it is unnecessary to implement numbers > 20! if input is only u64/ulong. Don't tricked by the description.
This comment is hidden because it contains spoiler information about the solution
Thanks all!
Sorry for the "Suggestion" tag, I didn't know.
tho string is not always iterable
sorry i checked the test case again and i found that it should be pickPeaks [2,1,3,1,2,2,2,2]. it is not a peak
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.
I am using haskell
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]} )
This comment is hidden because it contains spoiler information about the solution