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.
Well, this one is more inspiring. For the kata, the algorithm complexity of solution can not be reduced. However this trick is somehow better than doing int comparison (as I once did), let alone adding up two numbers each time. On the other hand, utilizing the set type also involves consideration of the feature of python language, which is good.
Yep. Not much effort on implementation is needed when plan is in mind, which is good.
This comment is hidden because it contains spoiler information about the solution
Considering the third case first may help.