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.
How can be solution without set be better?
If b is large enough, it is indeed the best performant.
Sorry about that!
Please use a spoiler flag, comments are visible to everyone by default.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Yeah I figured that too.
This comment is hidden because it contains spoiler information about the solution
normally efficiency. But here, it's done in a pretty stupid way, which makes this solution even slower than the O(n²) solution without the set... XD
=> See the fork.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...