1. Take input and print recursive #

Created Saturday 25 January 2020

We want to achieve two things:

  1. Print function - void printTree(TreeNode* root)
  1. Input function

TreeNode* takeInput() { // ask root data // no. of children // call takeInput three, 3 subtrees done. }

We’ll be using recursion in 95% of the tree problems. TreeNode_Input_and_Print.h treeMain.cpp