[PR #507] [MERGED] heapsort does not work for sorted input 1,2,3,4,5 #925

Closed
opened 2026-01-29 15:16:17 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/507
Author: @ericcurtin
Created: 1/3/2020
Status: Merged
Merged: 1/4/2020
Merged by: @danghai

Base: masterHead: patch-1


📝 Commits (1)

  • 5087249 heapsort does not work for sorted input 1,2,3,4,5

📊 Changes

1 file changed (+50 additions, -52 deletions)

View changed files

📝 sorting/HeapSort.c (+50 -52)

📄 Description

So I copied the C++ version from TheAlgorithms and re-wrote it in C.
Now it works.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/507 **Author:** [@ericcurtin](https://github.com/ericcurtin) **Created:** 1/3/2020 **Status:** ✅ Merged **Merged:** 1/4/2020 **Merged by:** [@danghai](https://github.com/danghai) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`5087249`](https://github.com/TheAlgorithms/C/commit/5087249a17083027c95fd8cf641d2a0aa2d6945f) heapsort does not work for sorted input 1,2,3,4,5 ### 📊 Changes **1 file changed** (+50 additions, -52 deletions) <details> <summary>View changed files</summary> 📝 `sorting/HeapSort.c` (+50 -52) </details> ### 📄 Description So I copied the C++ version from TheAlgorithms and re-wrote it in C. Now it works. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:16:17 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#925