wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following
Which of the following represent Inorder and Postorder of the tree ?



A
Inorder : ABKJCLIEDHFG
Postorder: ABCJKIDEFGHL
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Inorder: AKBJCLIDEHFG
Postorder: ABCJKIDEFGHL
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
Inorder: ABCJKILDEHFG
Postorder: ABCJKLIEDHFG
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Inorder : AKBJCILDEFHG
Postorder: ABCJKIDEFGHL
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B Inorder: AKBJCLIDEHFG
Postorder: ABCJKIDEFGHL
  • Inorder of tree is: Left, Root, Right (any other) So, Inorder: AKBJCLIDEHFG
  • Postorder of tree is left, Right (any other). Root So, post order is : ABCJKIDEFGHL


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
QUANTITATIVE APTITUDE
Watch in App
Join BYJU'S Learning Program
CrossIcon