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.
haven't learned regular expression and also don't know about group() func
Very precise solution.
gj
Did exactly that. Been using codewars for like a week and I already can code a solution in a single line just by watching others' solutions
why did you reverse twice??
Genius
Not exactly the same but I share the sentiment with most of the Kata's on here.
Way more concise than mine!
Why i used counter i dont know :d
This comment is hidden because it contains spoiler information about the solution
That does make sense that it's slower, this code loops over EVERY LETTER.
Is it really a good idea? It looks like an yoyo code to me which it convert the number to string in binary representation, and then convert it back to number by counting the number of "1"s.
I did almost the same thing but in 7 lines!
The whole world almost dies writing and thinking long codes and you finished it in one line!
Nice solution but I prefer it to be more explicit.
Loading more items...