The goal of this kata is to work with heaps.
- Implement the heapify method taking a vector as paramater.
- Implement the sort alogrithm taking a heapified vector as parameter.
Here are the functions' signature:
void heapify(std::vector<int>& v);
void sort(std::vector<int>& v);