I initially understand trees and their structure as an ADT, but I didn't understand how the coding worked. Particularly how this:
represented this:
However, I figured it out. If I'm not mistaken the structure is :
tree_variable = Tree(root value), descendants list, number of nodes per root.


No comments:
Post a Comment