阿摩線上測驗 登入

申論題資訊

試卷:110年 - 110 國立臺灣大學_碩士班招生考試_資訊管理學研究所:資訊科技概論#102021
科目:研究所、轉學考(插大)◆資訊科技概論
年份:110年
排序:0

題組內容

The following C++ code fragment shows the class definition of an array-based implementation of ADT Binary Tree that stores a list of person names.
615f9a2b30fc9.jpg 

申論題內容

(b) (20 points) Write the BinaryTree : : removeA1 1 Leaf () that removes AL.L, leaf nodes from a binary tree. Note that you also need to implement the BinaryTree: : recurRemo oveLeaf() called by removeAllLeaf() protected function that recursively traverses the tree to delete all the leaf nodes.