I am having problem understanding the concept mainly with recursion part.
The approach given in this link says: “When we visit a node, we make sure that its left and right sub-trees are already fixed.”
now my question is, why are we fixing the right and left sub tree?