Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


π Not just another binary tree
ποΈ General
The heapsort is some sort of binary tree where the root is either the smallest or the largest value on the heap. With this implementation I also removed the use of the structure that defines a binary tree. Instead of nodes and a root the heap will be implemented by using an array that can be intterated by this rules:
πποΈπ Operations
The heap is handeled like a basic binary tree and therefor has similar operations:
π³π Peek
Is the simple operation which retrives the root or the first element of the heap array
π³β¬ οΈ Insertion
Provided a value, appending it to the end of the heap array and comparing and swapping it with its parent aslong as the first element is not reached or the parent is in the corect order with the new value.