Naive Algoritm

Written by : Manasi Muglikar

>

The main constraints considered while writing this algorithm is the first aesthetic that states that all the nodes that are on the same level are in a straight line even if the tree is rotated

Variables used :

Variables used inside the Structure(tree)

An example case

Right side is the terminal where you input the details, the output is seen in the left side window