What do you mean by structure property in a heap?



What do you mean by structure property in a heap?..

Answer / Harshit Kumar Vishnoi

In Heaps, the structure property requires that the parent node is always greater than or equal to (in Max Heap) or less than or equal to (in Min Heap) its child nodes. This ensures that the largest (Max Heap) or smallest (Min Heap) element is always at the root of the heap.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Explain the term base case?

1 Answers  


How do you do binary search?

1 Answers  


Is collection a class or interface?

1 Answers  


Is file a data structure?

1 Answers  


What do you mean by 2-3-4 tree?

1 Answers  


What is sorting with example?

1 Answers  


What is a graph?

4 Answers  


How to reverse a singly linked list?

1 Answers  


What is impact of signed numbers on the memory?

1 Answers  


Complete structure of hashmap, very detail description, along with the basic coding of the hashmap internal implementation.

1 Answers   Expedia,


Define a complete binary tree?

1 Answers  


What is data type explain?

1 Answers  


Categories