Data-Structures
October 9, 2023Nielit Scientist-B CS 22-07-2017
October 9, 2023Heap-Tree
|
Question 5
|
Which of the following sequences of array elements forms a heap?
|
{23, 17, 14, 6, 13, 10, 1, 12, 7, 5}
|
|
|
{23, 17, 14, 6, 13, 10, 1, 5, 7, 12}
|
|
|
{23, 17, 14, 7, 13, 10, 1, 5, 6, 12}
|
|
|
{23, 17, 14, 7, 13, 10, 1, 12, 5, 7}
|
Question 5 Explanation:

In this every children and parent satisfies Max heap properties.
Correct Answer: C
Question 5 Explanation:

In this every children and parent satisfies Max heap properties.
