Following Tree Traversing Techniques can be used to print a Binary Search Tree (BST);
Which of them can be used to print a Binary Search Tree (BST) in Descending Order ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The traversal that can be used to print a tree in Descending order is; ( r i g h t ) r o o t ( l e f t ) which is neither Pre-order nor Post-order nor In-order . Hence None of these is the right choice for the answer.
Following is the algorithm that can be followed to print a tree in Descending order;