# input is a list L = [1,2,3,4,5,6,7,8,9] # I expect the output to be a tree ''' 1 / \ / \ 2 3 / \ / \ / | | \ 4 5 6 7 / \ / \ 8 9 ''' # I don`t want it to be printed in this manner, but I expect some data structure which stores the generic binary tree in this fashion.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)