Heap-Tree
October 9, 2023Nielit Scientist-B CS 22-07-2017
October 9, 2023Heap-Tree
Question 9
|
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 9 Explanation:
![](https://solutionsadda.in/wp-content/uploads/2020/03/u1.jpg)
In this every children and parent satisfies Max heap properties.
Correct Answer: C
Question 9 Explanation:
![](https://solutionsadda.in/wp-content/uploads/2020/03/u1.jpg)
In this every children and parent satisfies Max heap properties.
Subscribe
Login
0 Comments