about | help | code help+videos | done | prefs |
frew@mclean.com heap-1
Practicing heap array indices:
otherChildHeap
grandparentHeap
Using Java's PriorityQueue:
No Arrays.sort/Collections.sort! Only one pass over the array! Use the PQ constructor that takes a list whenever possible!
priorityQueueSmallest
medianListOdd H
medianList
find2ndSmallestList
sumNSmallList
Authoring docs
Copyright Nick Parlante 2017 - privacy