P Pham Quỳnh New member Sep 16, 2021 #2 Answer: C Explanation: The condition under while condition is wrong for a (min) binary heap The correct condition should be while(i!=0 && harr[parent(i)] > harr). Otherwise the constructed heap will be a max-binary heap. Upvote 0 Downvote
Answer: C Explanation: The condition under while condition is wrong for a (min) binary heap The correct condition should be while(i!=0 && harr[parent(i)] > harr). Otherwise the constructed heap will be a max-binary heap.