Question

Which of the following is a key characteristic of a heap's structure?

A It is always a perfectly balanced binary search tree.
B It is a complete binary tree.
C Elements are stored in sorted order.
D Each node has a pointer to its parent and children.
E It allows O(1) random access to any element.
Practice Next

Hey! Ask a query