'Confused with what parameter int "i" is in this implementation of a priority queue
So I'm trying to understand how to implement a priority queueimage of priorityQueue implementation, but the parameter "int i" is confusing me. Is this the index from where the user wants to start heapifying? For the heapify method of the priority queue, isn't it always supposed to start at the last leaf node? if so, why do we need this variable "int i?"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
