Posted by resin on July 23, 2001 at 19:36:43:
In Reply to: Problem 6.12 posted by Jon on July 22, 2001 at 23:35:04:
: So, does anybody know exactly how to pass an unordered list to buildHeap since we can't exactly give it a heap that violates the heap-order property?
what i did was simply make a member function that inserts into the vector. after that, make buildHeap() a public member function. viola.