I wnat to dynamically create a tree with a fucntion taking the number of levels and childnodes for each node as an arguemnt. i have created the path from the root node to the lowest level and there are able to add as much child nodes as needed. now i need to move up the other levels to ensure thy also have enough child ndoes.
i would really appreciate if someone would help me figure out the logic on how to do that or does knwo how to find pseudocode or explanations on how to do that on google :3 bc i all found are depthg first searches...