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.
The more lines of code you have means the more work you have done. More work done means better.
Not sure it really is "best practice", this seems more of a joke. That said, it is quite performant because it iterates over the characters of the input exactly once, although in the grand scheme of things it is still a O(N) algorithm, so asymptotically it won't perform much better than other solutions that use Linq and iterate over the input multiple times.
You should know that on Codewars, "best practice" and "clever" mean very little, as many votes tend to come from inexperienced users who don't really understand what the solution does or how it performs, but are "wowed" by it in some way and just give it their vote.