Skip to content

frankhanner/Java-Heap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Java Heap

Overview

This is a implementation of a Heap in Java that uses an ArrayList coupled with recursion.

Why

Give insight to new users of Java who are trying to learn data structures.

Use

First create a heap object:

Heap h = new Heap();

Once the object has been instantiated, you can insert and delete:

h.insert(TreeNode node);
h.delete();
h.printTree();

Deleting simply returns the max node.

About

Heap Data Structure implemented in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages