Skip to content
Related Articles
Open in App
Not now

Related Articles

Data Structures | Tree Traversals | Question 12

Improve Article
Save Article
Like Article
  • Difficulty Level : Medium
  • Last Updated : 28 Jun, 2021
Improve Article
Save Article
Like Article

The array representation of a complete binary tree contains the data in sorted order. Which traversal of the tree will produce the data in sorted form?
(A) Preorder
(B) Inorder
(C) Postorder
(D) Level order


Answer: (D)

Explanation: The level order traversal of a binary tree prints the data in the same order as it is stored in the array representation of a complete binary tree.

Quiz of this Question

My Personal Notes arrow_drop_up
Like Article
Save Article
Related Articles

Start Your Coding Journey Now!