Skip to content

Added Heap sort, tests, and documentation.#36

Merged
abranhe merged 3 commits into
abranhe:masterfrom
DatHydroGuy:add-heap-sort
Oct 6, 2019
Merged

Added Heap sort, tests, and documentation.#36
abranhe merged 3 commits into
abranhe:masterfrom
DatHydroGuy:add-heap-sort

Conversation

@DatHydroGuy

Copy link
Copy Markdown
Contributor

This pull request is:

  • A new Algorithm
  • An update to an existing algorithm.
  • An error fix
  • Other (Describe below*)

This pull request fixes:

issue #23

Changes:

Added heap sort algorithm. This is an in-place sort, so the function does not have a return statement. This also explains why the unit test looks a little different to the others. This can be easily modified to return the sorted array, but that removes the advantage of the in-place sort.

Fixed test call for tree sort.

@abranhe abranhe left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for your contribution. Without people like you submitting pull requests we couldn't run this project.

💪 You rock @DatHydroGuy

@abranhe abranhe left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for your contribution to The All ▲lgorithms Project. Without people like you submitting Pull Requests we couldn't run this project. You rock @DatHydroGuy

@abranhe abranhe merged commit 78d8a9b into abranhe:master Oct 6, 2019
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.

2 participants