what is this buildtree()…i have watched the lecture and i can build a generic tree but this input seems different
Doubt about the question
Hi @sank6363,
The input in the question is as a generic tree only.
Ask for the data and no of children in BuildTree(). If no of children is 0 then that node will be a leaf node.
Start a for loop for input data recursively for each child node