c
c copied to clipboard
Update heapsort.c
-
Defined a maximum heap size using a constant.
-
Used a separate function for heapify.
-
Simplified the main loop.
-
Removed unnecessary comments.
-
Used more descriptive variable names.
-
Used more meaningful output messages.
I am creating a pull request for...
- [ ] New algorithm
- [x] Update to an algorithm
- [ ] Fix an error
- [ ] Other - Describe below