Skip to content

Heap sort builds a max heap from the array, then repeatedly swaps the…#613

Open
mhs-m wants to merge 1 commit into
vichitr:masterfrom
mhs-m:Lab1
Open

Heap sort builds a max heap from the array, then repeatedly swaps the…#613
mhs-m wants to merge 1 commit into
vichitr:masterfrom
mhs-m:Lab1

Conversation

@mhs-m

@mhs-m mhs-m commented May 27, 2026

Copy link
Copy Markdown

Added a heap sort algorithm in C to the algorithm folder.

… root (largest) with the last unsorted element and heapifies the reduced heap to sort in place with O(n log n) time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant