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.
beautiful code!
Seems so. But the problem is that test accepts your code now. And numbers are mentioned only in description.
The kata was probably changed to add numbers in addition to alphabetic characters.
This is strange that this one is accepted cause it does not pass this example: "aA11" -> 2 # 'a' and '1'
It does not covers "numeric digits"
I think that the right RegEx is /([a-z,0-9])\1+/g
!
!
I think the word "having" is more natural in English sentences here so it's the only global intended to be used with
each
for that reason.Doing global references isn't bad practice if you back up the old values of the references and restore them afterward, which doesn't require that much more code in this case.
Don't forget the 'L' at the end in Java :D
Couldn't agree more.
Mine was super similar to this my first go around. Only big diference is my inner loop's conditional is
k <= Math.log(n)
and I added a check to see ifn % m === 0
before the k loop. I edited mine to include them * m
istead of justm
from yours, I didn't even think of that and it seemed so obvious after seeing yours I had to.That part of the description is gone, and that comment in the sample tests (at least) is gone too.
very good solution,thanks
Changed the discription with your suggestion :)
Reraised as an
Issue
later.Loading more items...