Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public BinaryHeap() {

// Construct a priority queue with an initial capacity
public BinaryHeap(int sz) {
heap = new ArrayList<>(sz);
heap = new ArrayList<T>(sz);
}

// Construct a priority queue using heapify in O(n) time, a great explanation can be found at:
Expand Down