Ad
  • Custom User Avatar

    Why you think that?
    I just test it in the console and my solution return 1, that seems to be the right answer, isn't it?

  • Custom User Avatar

    This doesn't appear to handle one of the Submit cases, which I'm guessing is [0, 0, 0]

  • Custom User Avatar

    Oops: I just figured out how to solve kata at any level, I think (or at least lower levels). Never mind...

    Hmmm. I wonder if I have the same system glitch. I just got here. I'm a beginner. I solved an 8 or two, then a 7, and now I'm stuck with a 6. I want to go back to 8, or maybe 7! How? I came to practice, not beat my head against a wall! ;-) Seriously though this really looks great, it's my first exposure to TDD too and I think that might be fantastic even though I'm still mostly clueless... I just need to level down!

  • Custom User Avatar

    That is a brilliant while loop. Wow. I never knew... coulda been ++i * 2 < integer to save half your looping I think, but still brilliant. Oh, and coulda been (integer % i) || matched.push(i) I think. Everybodies a critic, I wouldn't have come up with this, very nice.