University of California, Berkeley/ElectricalEngineering & ComputerSciences

LAB_day 5

chaeny 2019. 7. 11. 05:22

Trees

root, branch, leaf, leaves

parent, child

depth, height

python codes ex.

def tree ( label, branches = [] )

   tree ( 1, [ tree(5), tree(2, [tree(3), tree(4), tree(7)])