Heapsort program doesn't seem to work when you pass in an already sorted list #41

Closed
opened 2026-01-29 15:01:35 +00:00 by claunia · 2 comments
Owner

Originally created by @ericcurtin on GitHub (Dec 16, 2019).

Enter the size of the array you want
5
Enter numbers separated by a comma:
1,2,3,4,5
[1, 2, 5, 3, 4]

Originally created by @ericcurtin on GitHub (Dec 16, 2019). Enter the size of the array you want 5 Enter numbers separated by a comma: 1,2,3,4,5 [1, 2, 5, 3, 4]
Author
Owner

@ericcurtin commented on GitHub (Jan 3, 2020):

This fixes the issue:

https://github.com/TheAlgorithms/C/pull/507/files

@ericcurtin commented on GitHub (Jan 3, 2020): This fixes the issue: https://github.com/TheAlgorithms/C/pull/507/files
Author
Owner

@danghai commented on GitHub (Jan 4, 2020):

You can specify the issue number in commit message. It automatically is closed when it is merged.
The reference link: https://help.github.com/en/github/managing-your-work-on-github/closing-issues-using-keywords

@danghai commented on GitHub (Jan 4, 2020): You can specify the issue number in commit message. It automatically is closed when it is merged. The reference link: https://help.github.com/en/github/managing-your-work-on-github/closing-issues-using-keywords
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#41