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 approach doesn't work for some rare random tests, e.g.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This is an absolutely great write up and I really appreciate you taking the time to write all that down for us!
This comment is hidden because it contains spoiler information about the solution
Needs some tests with noncorrect words thrown in to up the difficulty
Great solution. I forgot all about that array with pipe regex concept!
So the inner loop is the prime factors for a single number, then the outer loop is repeating the process for all the numbers from 2..n? Trying to wrap my head around the concept.
got it, totally makes sense
because index of a range starts at zero, an n length range starting at i will go from i to i + n-1
How did you arrive at this ?
(i..(i + (n - 1)))
This is very creative and a great idea!
oh man, i love this solution
Still learning regex, can you explain the positive lookahead with nothing to look ahead to? Why does split(/[A-Z]/) not work?
How many words out there have 5000 letters?
Loading more items...