Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 397 Bytes

README.md

File metadata and controls

14 lines (12 loc) · 397 Bytes

JavaHeap

This is a generic heap data structure for Java. You can use it with every object implementing Comparable interface.

Heap

In this heap, the root of the tree is always the object with maximum node. If you need to print the tree, toString() method has been overwritten, and the tree will be printed using BFS manner.

Operations

insert() peek() poll() isEmpty() remove() remove all()