edited by
278 views
1 votes
1 votes

The data structures most suitable to do an inorder and level order traversals of a binary tree respectively are

  1. Stack and Queue
  2. Queue and Stack
  3. Stack and Stack
  4. Queue and Queue
edited by

1 Answer

Best answer
1 votes
1 votes
Inorder  traversal (Left, Root, Right) : Stack

Level order traversal (or) Breadth first traversal: Queue

So, the correct answer is $(A).$
selected by
Answer:

Related questions

2 votes
2 votes
1 answer
2
gatecse asked Aug 9, 2020
178 views
Which of the following is not a valid sequence of key traversals while searching the key $44$ in a binary search tree?$11,88,22,77,33,66,44$$11,22,33,44$$88,11,22,77,55,4...
1 votes
1 votes
1 answer
3
1 votes
1 votes
1 answer
4
gatecse asked Aug 9, 2020
185 views
What is the value of the postfix expression $8 \ 7 \ 2 \ 4 \ + \ – \ *?$: