Data Structures

Which traversal method visits the root node before its subtrees?

Correct answer

B. Preorder

Explanation

Preorder traversal processes the root before visiting child nodes.