this approach doesn't work for some rare random tests, e.g.
788475518165507479605671527362695855574970537266616882768363645977548067 36 (Expected: [49, 84], instead got: [48, 83])
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!
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 collection data...
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...