logo

Crowdly

Browser

Додати до Chrome

Questions Bank (1251907 total)

An empty max-heap is initialized by inserting elements one at a time, in order, from the array [39,11,22,19,98,99,56,63].

What are the final contents of the newly-built heap?

0%
0%
0%
0%
0%
Переглянути це питання
An empty max-heap is initialized by inserting elements one at a time, in order, from the array [89,9,98,16,29,76,77,73].

What are the final contents of the newly-built heap?

0%
0%
0%
0%
0%
Переглянути це питання
An empty max-heap is initialized by inserting elements one at a time, in order, from the array [6,86,7,13,67,22,19,36].

What are the final contents of the newly-built heap?

0%
0%
0%
0%
0%
Переглянути це питання
In the implicit min-heap with contents

[4,9,6,17,26,8,16,19,69,32,93,55,50], what is the parent of 6?

Переглянути це питання
In the implicit max-heap with contents [40,27,17,22,18,14,3,11], what is the right-child of 40?
Переглянути це питання
Partway through heapsort, the underlying array has contents [62,37,22,6,14,86,89,97]. What is the current heap size?
Переглянути це питання
Partway through heapsort, the underlying array has contents [4,1,14,15,17,23,29]. What is the current heap size?
Переглянути це питання
An empty max-heap is initialised by inserting elements one at a time, in order, from the array [35, 85, 83, 70, 90, 17, 14].

What are the final contents of the heap after executing EXTRACT-MAX twice?

0%
0%
0%
0%
0%
Переглянути це питання
Partway through heapsort, the underlying array has contents [9,8,11,13,17]. What

is the current heap size?

Переглянути це питання
An empty max-heap is initialised by inserting elements one at a time, in order, from the array [77, 22, 34, 61, 30, 29, 45].

What are the final contents of the heap after executing EXTRACT-MAX twice?

0%
0%
0%
0%
Переглянути це питання