What properties does a heap share with a binary tree?
What will be an ideal response?
A heap is a binary tree, in that it is a series of nodes in which each node has links to 0, 1, or two other nodes,
and such that each node has at most one other node linking to it. It uses the methods defined in the Binary Tree interface.
Computer Science & Information Technology
You might also like to view...
What keyword can be used to declare a delegate?
A. handler B. function C. pointer D. delegate
Computer Science & Information Technology
Does the return statement in the following function cause syntax errors?
``` void f() { int max = 0; if (max != 0) cout << max; else return; } ``` A. No B. Yes
Computer Science & Information Technology