Saved Bookmarks
| 1. |
What is a heap data structure? |
|
Answer» Heap is a special tree-based non-linear data structure in which the tree is a complete binary tree. A binary tree is said to be complete if all levels are completely filled except possibly the last level and the last level has all elements as left as possible. Heaps are of two types:
|
|