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.
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.
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.
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?
Suggestion: add a few test cases for computing roots of large numbers (10,000,000+). That should eliminate the most blatant brute force solutions.
Fixed, I wish validation also did a syntax check on the initial setup.
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.
Fixed again. I suppose I could allow arbitrarily large numbers, but that would essentially limit the solution to string comparisons, which seems less interesting.
Thanks, this is my first published Kata so I'm still getting a hang of this. Updated with your suggestions.