Page 1 of 1

Please explain the bug in the buildHeap code below. Show a corrected version of the code along with a brief explanation

Posted: Fri May 20, 2022 4:59 pm
by answerhappygod
Please explain the bug in the buildHeap code below. Show a
corrected version of the code along with a brief explanation of
what was wrong.
PLZ And THX :)
Please Explain The Bug In The Buildheap Code Below Show A Corrected Version Of The Code Along With A Brief Explanation 1
Please Explain The Bug In The Buildheap Code Below Show A Corrected Version Of The Code Along With A Brief Explanation 1 (6.87 KiB) Viewed 42 times
private void buildHeap() { for (int i = 1; i < currentSize/2; i++) { percolate Down(i); }