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 does it work? Can someone explain?
middle two comparisons don't make sense, because a,b,c are sorted, last one is an else case for first comparison so it doesn't make sense to check it
this solution is more near to what is asked in the description rather than making a class inside a function.
yes!
You got advantage of dictionary duplicate updation behaviour .. good one