AllAlgorithms / c

Implementation of All ▲lgorithms in C Programming Language
https://github.com/AllAlgorithms/c
MIT License
1.44k stars 520 forks source link

Update heapsort.c #404

Open yogirajbshinde21 opened 1 year ago

yogirajbshinde21 commented 1 year ago
  1. Defined a maximum heap size using a constant.

  2. Used a separate function for heapify.

  3. Simplified the main loop.

  4. Removed unnecessary comments.

  5. Used more descriptive variable names.

  6. Used more meaningful output messages.

I am creating a pull request for...