-->
当前位置:首页 > 题库 > 正文内容

单选题:Suppose that the level-order traversal sequence of a max-heap is

Luz3年前 (2022-11-16)题库991
Suppose that the level-order traversal sequence of a max-heap is { 82, 65, 17, 26, 8, 12, 3 }. Use the linear algorithm to adjust this max-heap into a min-heap, and then call DeleteMin. The preorder traversal sequence of the resulting tree is:



A.8, 17, 12, 26, 65, 82
B.8, 26, 82, 65, 12, 17
C.26, 65, 17, 82, 12, 8
D.8, 17, 26, 65, 12, 82


答案:D

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。