CS 240: Algorithms and Data Structures
James Madison University, Spring 2023

Your goal in this lab is to implement a heap. Unlike the heap described in the book, your heap must allow elements of any comparable type and must be a min-heap.

MinHeap

Define the class MinHeap. Give it this public interface:

Submission

Test your implementation locally, either using a main method, a driver class, or unit tests. Once you are confident that your code is correct, submit MinHeap.java through Gradescope.