Hiya,

Im trying to construct a binary tree and im not quite sure how to do it so that it's well ballanced. I have a fair idea on how a binary tree works, just putting it together is troubling me, i tryed a google and it spat quite alot of math at me that i didn't quite undersand so I was hoping that if someone explained it as far as code goes i'd get it.

Basicly say you have the data between 1 and 20 and it's all in sequence, what order would you place the data, i figgurd the root node should be 10 and that would probably branch into 5 and 15 but from there im a little stuck