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 suppose one line solutions like this long one are good for the CodeWars but not for the real life. Yes, we have "Clever"-Button for it, but I doubt that the squeeze-style approach like this is really clever (in this case!)
I think, my solution is one of the simpliest and one of the best. You can quickly unterstand, which conditions are set, and which result you will get.
Best practices should become this one, not the current first one.
没有数学是一个非常有趣的解决方案 (I hope I have translated it correclty :-))
I think, this is the best (short and quick understanable) solution, just if you know what the "floor division" is!
I dislike it. There's no funny solution. It's just digit spam.