Re: Problem 6.12


[ Follow Ups ] [ Post Followup ] [ CS328 Message Board ] [ FAQ ]

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.




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS328 Message Board ] [ FAQ ]