Min and Max Heaps #15
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Potential ways to distinguish:
Use of an Enum to separate the different types. Have a modifier to invert the comparison. Potential universal function.
Separate them into different classes and redefine each with separate functions (not 100% efficient)
From time away from the repo, I have realised it will probably be best to have the Heap represented using an Array. It will make it easier to insert new items and becuase of the way the heap is ordered, it makes it quicker to swap items back up through the heap in the event that the top item is popped.