Kotlin
Kotlin copied to clipboard
Binary heap (min/max heap) implementation with tests
trafficstars
Standard binary heap implementation with the following methods:
- Push
- Pop
- Peek
- Heapify Tests demonstrate how to instantiate a minHeap and MaxHeap.