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.
Are you sure, Stefan? I calculate this as
O(n log n)
. And from what I can tell, your solution seems to beO(n log n)
too.Can anyone confirm?
TODO:
when you think that there is not room from improvement, but then you see this!! This is art!!
Even though I took this approach, I wouldn't count it as a best practice. It sacrifices some time complexity for readability.
awesome implementation !
wow
Okay
Lol, I have no idea what is happening here.
How is this one working?
This comment is hidden because it contains spoiler information about the solution
Can someone please explain why the pop method fails ?
Fixed for JavaScript, TypeScript, Java, C# and PHP.
I forgot this was even a thing.
Python fork with fix
(adds tests for arrays with leading zeroes and expects those zeroes to be included)
This comment is hidden because it contains spoiler information about the solution
Loading more items...