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.
You don't say!
what's going on here?
I see. Thank you! And why 'return std::move(dna)' and not just 'return dna'?
I really liked this kata, but it's more a 6kyu, isn't it?
What is 'input >>= 4' doing?
I found that much more readable than the top solution.
Well...this is likely to have a quadratic time complexity, so I don't think it's best practise...
I did it in a programmatic way, because I am bad at math. So what?
That's beautiful.
Well, the kata description says 'The string has a length greater or equal to one and contains only letters from a-z'?
It's seems a general problem on codewars that 'best practise' is interpreted as 'short', regardless of efficiency or readability
This comment is hidden because it contains spoiler information about the solution
I agree that the parameter names are poorly chosen, but instead of comments, you could just change them to more telling ones ;)
Is this really best practise? It iterates the string four times, doesn't it?
Ahm...what's going on here?
Loading more items...