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.
The linked kata only asked for peaks whereas the one I posted asked for both local minimas and local maximas. I have also searched to find if there was any other kata asking for both of these and found none.
I have changed the kata to make it that the output of a plateau would be its starting and ending positions.
For your first point I haven't figured out yet how to add the random tests with plateaus so I haven't added them yet. I will fix the problem with the oldest ages since I used it as an example to know what to put where. And the kata you linked actually gave me the idea to create this one but instead of only locating local maximas (peaks) in this kata you have to locate both local maximas and local minimas in order to get the solution right. I will add a section to the description that I was inspired by this kata.
Indices 10 to 12 does not make a plateau because they aren't at a local maxima or local minima state, in this example after these indices there's a -4 which will be less than the consecutive -2s. Hope my explanation made it clear.
This comment is hidden because it contains spoiler information about the solution