Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- BinaryHeap<Integer> heap = new BinaryHeap<Integer>();
- heap.insert(4);
- heap.insert(10);
- heap.insert(-5);
- heap.insert(7);
- System.out.println("current max: " + heap.delMax());
- System.out.println("current max: " + heap.delMax());
- System.out.println("current max: " + heap.delMax());
- System.out.println("heap size: " + heap.size());
- System.out.println("current max: " + heap.delMax());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement