What must be the missing logic below so as to print mirror of a tree as below as an example? [code] if(rootnode): mirror(rootnode-->left)

Hằng Đoàn

New member
What must be the missing logic below so as to print mirror of a tree as below as an example?
Code:
if(rootnode):
  mirror(rootnode-->left)
  mirror(rootnode-->right)
  //missing
end
A. swapping of left and right nodes is missing
B. swapping of left with root nodes is missing
C. swapping of right with root nodes is missing
D. nothing is missing
 

Tìm kiếm

Back
Top