-->
当前位置:首页 > 题库

单选题:Given an array of integers { 18, 28, 32, 22, 8, 10, 30 }. Build

Luz5年前 (2021-05-10)题库1176
Given an array of integers { 18, 28, 32, 22, 8, 10, 30 }. Build a min-heap using the linear algorithm and then call DeleteMin twice. Which of the following is the level-order traversal sequence of the remaining heap?
@[C](2)

A. 18, 22, 30, 28, 32
B. 18, 30, 22, 32, 28
C. 18, 22, 30, 32, 28
D. 18, 30, 28, 22, 32



A.18, 22, 30, 28, 32
B.18, 30, 22, 32, 28
C.18, 22, 30, 32, 28
D.18, 30, 28, 22, 32


答案:C