Posts by Juan Lopes • 126 points
1 post
-
1
votes2
answers1819
viewsA: How to calculate the percentage of items performed in a data tree in the list format?
You can navigate the tree implicitly by calculating the total solved by the children of each node, thus: def complete(tree, i, level): first = i siblings = [] while i < len(tree) and tree[i][0]…
pythonanswered Juan Lopes 126