题目
题目

CIS-279-OLH-CRN47413

单项选择题

Which XXX would replace the missing statement in the algorithm for inserting a new node in an empty AVL tree? AVLTreeInsert(tree, node) { XXX { tree⇢root = node node⇢parent = null return } ... }

查看解析

查看解析

标准答案
Please login to view
思路分析
The question asks what statement should fill the XXX in the AVLTreeInsert function when inserting into an empty AVL tree. In an empty tree, the root pointer indicates that there is no node yet. Therefore, the first test must detect that there is no root and then perform the initial insertion by assigning the root t......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!