1 month agoby Bhagyaraj Aj
Binary Tree with parent-child relation - MLM I have to show a binary tree for a MLM project with parent-child relation.
Like,consider A as parent, A had B and C as child,then A refers D then D will be automatically assigned to parent's left child node(i.e D wil be assigned to B's left side).Again B made a referral then E will be assigned on right side of the node because left is already filled.
And also each referral had an amount that also affect the child's parent.For ex: if B refer D and E then B get 10 and the parent(B) also get 10. This also apply for child too.
Thanks in Advance.