Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Swap the array elements at provided indexes */
- private void swap(int a, int b) {
- Item temp = pq[a];
- pq[a] = pq[b];
- pq[b] = temp;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement