Which of the following tree traversal uses a queue data structure?
(A) Preorder
(B) Inorder
(C) Postorder
(D) Level order
Answer: (D)
Explanation: Level order traversal uses a queue data structure to visit the nodes level by level.
Quiz of this Question
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 neveropen!