Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration. Stan Kelly-Bootle

Convert a BST to a Binary Tree

Language Java | Level Intermediate | Category Data structure | September 6, 2015 8:49 am


Data structure Description

Write a program to convert an array to Binary Search Tree.


Output

   					 

All the values from an Array: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
All Binary Tree Values: 0 1  2  3  4  5  6  7  8  9  

				    

Comments


No comments available!

Please login to add comments.