Question DSA-TREE-0026
EasyA binary tree has root 1. Node 1's children are 2 (left) and 3 (right), and node 2's children are 4 (left) and 5 (right). What is its preorder traversal?
- A.
4 5 2 3 1
- B.
1 2 3 4 5
- C.
Sign up free to see the answer and a step-by-step explanation.