ques : https://hack.codingblocks.com/app/practice/2/276/problem
i am not getting how to take input for this
ques : https://hack.codingblocks.com/app/practice/2/276/problem
i am not getting how to take input for this
@chaman9 hey you are given array and you have to create balance tree from it after sorting,sort the array and create balance tree from it:
'1) Get the Middle of the array and make it root.
2) Recursively do same for left half and right half.
a) Get the middle of left half and make it left child of the root
created in step 1.
b) Get the middle of right half and make it right child of the
root created in step 1.
Hope you get it.
okay thanks… i will try to implement