Question: Please write in C++ thanks. Create a heap class/struct Fields: -Array of data points -Count Methods: Add(data) -Adds the data to the tree in heap
Please write in C++ thanks.
Create a heap class/struct
Fields:
-Array of data points
-Count
Methods:
Add(data)
-Adds the data to the tree in heap order.
Delete(void)
-Returns the data from the root, and replaces the value at the root with the smallest value in the tree.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
