?
What must be the missing logic below so as to print mirror of a tree as below as an example?
What must be the missing logic below so as to print mirror of a tree as below as an example?
/1725099435-50-9.png)
if(rootnode):
mirror(rootnode-->left)
mirror(rootnode-->right)
//missing
end
if(rootnode):
mirror(rootnode-->left)
mirror(rootnode-->right)
//missing
end
Join the Discussion
Login to post a comment or share your explanation.
Login