DATA STRUCTURE
Programming and Technical
Programming
Technical
A level order traversal in a binary tree requires which data structure?
a)stack b)Deque
c)Linked List d)DoublLinked list
Read Solution (Total 8)
-
- deque it will be
- 9 years agoHelpfull: Yes(9) No(2)
- It can be done using stack 100% sure .
refer http://techieme.in/level-order-tree-traversal/ for ans - 9 years agoHelpfull: Yes(1) No(0)
- Ref https://articles.leetcode.com/printing-binary-tree-in-level-order/ for answer.
- 6 years agoHelpfull: Yes(1) No(0)
- linkeed list
- 9 years agoHelpfull: Yes(0) No(2)
- c) Linked List
- 9 years agoHelpfull: Yes(0) No(2)
- (a)Stack
reason we can perform only via queue and stack but not dqueue neither linked list.
for referral plz visit : http://techieme.in/level-order-tree-traversal/ - 6 years agoHelpfull: Yes(0) No(2)
- D DOUBLE LINKED LIST
- 6 years agoHelpfull: Yes(0) No(1)
- stack it should be
- 6 years agoHelpfull: Yes(0) No(1)
DATA STRUCTURE Other Question