InterviewSolution
Saved Bookmarks
| 1. |
What is a heap in data structure? |
|
Answer» Heap is a special balanced binary tree data structure where root-node key is compared with its children and arranged accordingly. A min-heap, a parent node has key value less than its childs and a max-heap parent node has value greater than its childs. |
|