How does max heap work?



How does max heap work?..

Answer / Kaushlendra Kumar

'Max Heap' is a type of binary heap where the parent node has a greater value (key) than its child nodes. This means that the root node (at index 0) contains the maximum element in the heap. It follows certain properties: completeness, max-heap property, and degree property.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Explain implementation of traversal of a binary tree.

1 Answers  


Why do we need a data structure?

1 Answers  


Why is hashmap faster than arraylist?

1 Answers  


For the following COBOL code, draw the Binary tree? 01 STUDENT_REC. 02 NAME. 03 FIRST_NAME PIC X(10). 03 LAST_NAME PIC X(10). 02 YEAR_OF_STUDY. 03 FIRST_SEM PIC XX. 03 SECOND_SEM PIC XX.

0 Answers  


What is sorting in math?

1 Answers  


What is difference between linear and non linear data structure?

1 Answers  


What is the use of hashtable?

1 Answers  


What is the difference between arrays sort and collections sort?

1 Answers  


What is an externalizable interface?

1 Answers  


Where is binary tree used?

1 Answers  


Is heap sort faster than quicksort?

1 Answers  


How would you reverse characters of an array without using indexing in the array.

1 Answers  


Categories