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.
It's Codewars, you can't those ratings too seriously. People just like to see short one liners regardless of readability and efficiency.
Sometimes you can learn interesting tricks from them too.
It is definitely not recommended. It looks clever but that's it. When you work with other developer, readability is more important. I just think it is a cool way to solve problem. But it could also mean code efficiency, eg your code use less variable etc. I could be wrong.
I am seeing 👀 many people upvoting 🗳️ the single-line solutions.
Whereas It not a recommended practice where there are many operations are going on.
Because it compromises the code readability.
What do other people think ❓
single line solution should be supported and recommended or deserve downvote ❓