push method
void
push(
- dynamic item
Pushes an item to the priority queue.
Implementation
void push( item ) {
data.add( item );
length ++;
_up( length - 1 );
}
Pushes an item to the priority queue.
void push( item ) {
data.add( item );
length ++;
_up( length - 1 );
}