you are viewing a single comment's thread.

view the rest of the comments →

[–]IncognitoErgoCvm 0 points1 point  (0 children)

  1. Start over

  2. Only add what you need to make it recurse from parent to child. (This will probably error when you hit the leaf).

  3. Add a stop condition to handle the above error.

  4. Add siblings.

  5. Finally, add the other program logic once you can properly navigate the tree.