How can I build a binary heap of 8 elements with only 8 comparisons?
I've succeeded with 10...

lionsh, were you told that this is possible? I have a feeling it isn't possible.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.