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.
I've left Stackoverflow link there - check this response https://stackoverflow.com/a/32882220
There are some explanations
You are totally right. Thanks for this comment. But a lot of time has passed since I wrote this. And it was just like "hmmm, can I write it in one line in a couple of minutes?". Now I'm working as a middle .Net developer and I would never do that in my production code. My Upper solution is extremely slow.
This comment is hidden because it contains spoiler information about the solution