CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

If we traverse a binary search tree, in which manner that we get in ascending manner ___________.

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

The correct option is A Inorder

If we traverse a binary search tree, in Inorder manner that we get in ascending manner.

Binary search tree:-

In a binary search tree, all the nodes in left sub tree of any node contains smaller values and all the nodes in right sub tree of that contains larger values.



907973_917929_ans_60df15e4e57347bfb270042c8547d03f.PNG

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Introduction to Statistics
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon