When we convert Binary tree to Binary Search Tree…
The Algorithm like this
- Inorder and store in Array
- Sort the Array
3 Again Inorder on the Array.
can anyone clear my doubt what the logic behind this.
Thanks
When we convert Binary tree to Binary Search Tree…
The Algorithm like this
Thanks