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

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

Luz5年前 (2021-05-10)题库1201
Given an array of integers { 15, 22, 30, 18, 3, 8, 28 }. 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?
@[A](2)

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



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


答案:A