I think it's the only way as you need to traverse the entire binary
tree to do it.

On Oct 31, 9:45 pm, Ankuj Gupta <[email protected]> wrote:
> How to convert a Binary tree to BST ? Naive way is to create each node
> of  Binary tree one by one and keep on creating the BST.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to