Ad
  • Custom User Avatar

    Not according to the description since that tree has only 1 leaf node - but you're right in that that's somewhat counterintuitive. I'll try to reword the problem a bit.

  • Custom User Avatar

    It would be great to be able to draw to a canvas in a Kata and see the results when run. That will let us create a whole class of graphics-related Katas (image manipulation, etc) as well as make some of the more challenging ones easier to visualize.

    It would also be great to provide input as a file, store it in the Kata, and read that file for test execution.

  • Custom User Avatar

    I see you managed to solve it - any idea what was causing the console.log issues? I imagine it had something to do we resetting the nodes[] object during testing?

  • Custom User Avatar

    Suggestion: add a few test cases for computing roots of large numbers (10,000,000+). That should eliminate the most blatant brute force solutions.

  • Custom User Avatar

    Fixed, I wish validation also did a syntax check on the initial setup.

  • Custom User Avatar

    Fixed - yes the lines were supposed to be links between nodes. Previewing this first would have been a good idea.

    Also fixed the initial setup to something that makes sense.

  • Custom User Avatar

    Fixed again. I suppose I could allow arbitrarily large numbers, but that would essentially limit the solution to string comparisons, which seems less interesting.

  • Custom User Avatar

    Thanks, this is my first published Kata so I'm still getting a hang of this. Updated with your suggestions.