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.
O(N)
? But the number of elements in the result isO(len(arr)^2)
, so it must be bounded below byO(N^2)
. Or is this a differentN
from the length of the array?The tests are not very helpful. Not sure if you have control over that or not--I used to make katas years ago. But we used to be able to put a message into the test so it actually said a bit about what it was testing. Just getting "it should've been this other number" isn't useful as a message. And it seems only the last test is shown or something?
Oh man, it was a real struggle to understand what I was even meant to do. I think it's just how it was explained.
The way I would explain it is:
(Calling this a "first maximum rising sequence" is super wordy and confusing, so I've renamed is to "flush" for demonstration purposes.)
If this is intended to convey "you have to be eager constructing your subsequence", it's not working. Not helping is that that should be "chooses".
Why is this tagged
iterators
?