In what order will the nodes be visited using a postorder, a preorder, an inorder, and a level-order traversal?
Consider the following tree structure.
A
/ \
B C
/ \ \
D E F
Postorder – D, E, B, F, C, A; Preorder – A, B, D, E, C, F; Inorder – D, B, E, A, C, F; Level-order – A, B, C,
D, E, F
Computer Science & Information Technology