You can either have software quality or you can have pointer arithmetic, but you cannot have both at the same time. Bertrand Meyer

Sorted Linked List to Balanced BST

Language Java | Level Intermediate | Category Data structure | September 8, 2015 7:47 am


Data structure Description

Write a program to convert Sorted singly linked list to Balanced Binary search tree.


Output

   					 

Print the List values from List:
9->43->34->11->78->55->NULL
Print the Tree values from Linked List: 9  43  34  11  78  55  

				    

Comments


No comments available!

Please login to add comments.