i hav started started studying binary trees.i m stuck with one problem,which is as follows:-
1)create a binary tree(not a binary search tree) in C using elements from a array such that for every index m , left child is the 2m index value in array and right child will be in 2m+1-th index
for example:- For a node A the left child is the A[2*3] index element and right child is in A[(2*3) +1 ] th position. So left child of A is A and right is A.
and similarly for other nodes.
please help me solving the above problem as i thought a lot over it but could n't find a good solution.