Computer Science, asked by sghawri9286, 1 year ago

Suppose we we apply delete_max() twice to the heap [100,97,93,38,67,54,93,17,25,42]. what is the resulting heap?

Answers

Answered by abprlo
0
i want to apply delete_max() twice to the heap [100,97,93,38,67,54,93,17,25,42].

100 / \ / \ 97 93 / \ / \ / \ / \ 38 67 54 93 / \ | / \ | 17 25 42

As per me heap after two deletemax operations,resulting heap is [93,67,93,38,42,54,25,17]

93 / \ / \ 67 93 / \ / \ / \ / \ 38 42 54 25 / / 17
Answered by Chirpy
0

If delete_max() is applied twice to the heap [100,97,93,38,67,54,93,17,25,42]

The resulting heap is:

[93, 67,93,38,42,54,25,17]


Python is an interpreted high-level programming language. It is used for general-purpose programming. Its design philosophy emphasizes code readability using significant whitespace. It features an automatic memory management and a dynamic type system.

Similar questions