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.
This is exactly the reason I enjoy codewars katas so much. Learn something knew every day.
can't be!
———
"For I was conscious that I knew practically nothing..." | Plato
the only thing I know is that I know nothing.
count_ones/popcount is a (somewhat) common CPU operation
What is the utility of this function in the builtin library? Solving katas?
Arf...
how could someone imagine there's a function for that !! lol
Aha amazing! Makes me feel dumb.
lmao 😂
Holy crap
Damn this makes me feel stupid hahaha
The task implies that the string would contain only valid values. Therefore it's better to panic on an invalid value.
This comment is hidden because it contains spoiler information about the solution