Closed AlecNesatColak closed 1 year ago
Fixes issue:
Fixes issue #123 (Hypothetical Issue: Min Heap not handling negative numbers correctly).
Changes:
insert
minHeapify
getMin()
I saw a maxHeap implementation. I don't see a minHeap if you could guide me to its repository location. But also I can create and submit a Java implementation regardless.
Fixes issue:
Fixes issue #123 (Hypothetical Issue: Min Heap not handling negative numbers correctly).
Changes:
insert
function to handle negative numbers more efficiently.minHeapify
function to optimize heapification process, reducing time complexity.getMin()
to get the minimum element without extracting it.