![]() |
Heap Tree and Array
Hello,
If I have an array, and want to make a heap tree out of it using make heap and sort heap, how would I do it? I'm struggling because I didn't take any course in data structure. I tried googling stuff and I got to the following: Code:
#include <algorithm> // for std::make_heap, std::sort_heapAny help -in c++- will be appreciated |
| All times are GMT +5.5. The time now is 13:07. |