Skip to content

Instantly share code, notes, and snippets.

View lovisgod's full-sized avatar
💭
Busy building Payble

OLOSUNDE AYOOLUWA lovisgod

💭
Busy building Payble
View GitHub Profile

if a user registers, he has a referer. a referer can only get two direct down-lines. a user must have six down-lines to complete stage one. a registered user is related to one direct up-line. how do we get all down-lines that are not directly under a user but related to the user.

example

a = b, c

b = d, f

c = e, g