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.
It shows me an arror when I try this solution
woah I forgot you could do this!
this is definitely my favorite solution to this... wish I'd thought of it.
Wonderful
What I did lol
ugh that looks so satisfying, i love to try and make all my code as compact as possible. how did i not think of this?!?
In Python, you can make another identifier refer to the same function by assignment.
I'm confused. How does this work?
one line alert
so clean
Yes, thanks, totally forgot about that. Regarding the comment, we need to remove O(log n) and we get O(n^2) time complexity.
This comment is hidden because it contains spoiler information about the solution