Can preorder, postorder and in order traversals be beneficial to a real time application?

106 Views Asked by At

Sequences ["A", "B", "C", "D", "E", "F"] (preorder) and ["B", "A", "E", "D", "F", "C"] (inorder)

What can relate to a real-life example application?

1

There are 1 best solutions below

1
Linux Geek On BEST ANSWER

Postorder: Used to delete a tree.

Inorder: Used to print data in ordered (ascending) fashion.

Preorder: Used to create a copy of the tree.