I am trying to make my own libraries in c++ and want to implement heap data structure.
I have already coded all the algorithms for the insert, delete and find for the heap
What I need is a container to hold the heap.
I know that they are implemented as arrays, but since arrays have to be a constant size and I don't like to reallocate memory too many times. Should i use vector
as my container for heap?
I have implemented vector
myself.