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.
I had to work that one out myself. Excellent
No doubt it is clever, never knew you could do it like this. Thans
nice
Nice
Its clever, but is it the best practice?
oh thats spicy
wtf is this man?
That's very clever, I didn't even think for a moment that it could be done this way :D
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
people will understand the power of regular expression by seeing this, it's really amazing, but i don't think this will be encouraged to be in used in production...
I also thought that would be cool to solve this using regex!
In my case I used
join('')
enstead ofjoin('-')
and solved the /222/ problem by checking how many numbers are behind like this/^(...)*2{3}
You can see full code here:
https://www.codewars.com/kata/reviews/525caa5c1bf619d28c000338/groups/61e41f559a04f80001a6b80a
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
For what you wrote your solution here?
Loading more items...