akrd86 0 Newbie Poster

i want to count no. of person on left and eight in binary tree

also want to check 2:1 or 1:2 in tree,
3:4 or 4:3 in whole tree with particular id

My tree node contain id which is sponsor by other so i want to check wheather this sponsor has sponsored 3:4 or 4:3 in whole tree with particular sponsor id

database for tree

root id
left id
right id
lecvel