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.
Thanks a lot for the reply. Now I understand
I have a question. Why does pickPeaks([3, 2, 3, 6, 4, 1, 2, 3, 2, 1, 2, 3]) should return {pos: [3, 7], peaks: [6, 3]}, whereas the 2 peaks of the list are 6 and 4 at the positions 3 and 4. It should've returned {pos: [3, 4]}, peaks: [6, 4]. Am I wrong? Explain me
This kata is really difficult. I have no ideas about it. I could barely print the first function
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
When there is an error in the code, it is bettter to specify exactly for which example the code doesn't work. I'm really stuck in this kata, because there is only one example test which doesn't work with my code but I don't even know where the problem is. My code work in all the example tests but not with one example
This comment is hidden because it contains spoiler information about the solution