Skip to content

Refactor: Replace Swap and Comparison Methods with SortUtils Utility Methods - #5246

Merged
vil02 merged 2 commits into
TheAlgorithms:masterfrom
alxkm:refactor/heap_sort
Jun 22, 2024
Merged

vil02 merged 2 commits into
TheAlgorithms:masterfrom
alxkm:refactor/heap_sort

Conversation

@alxkm

@alxkm alxkm commented Jun 22, 2024 •

Copy link
Copy Markdown
Member

The HeapSort class had duplicated methods for less and swap, which already exist in SortUtils.

It is better to use the common methods instead of the old ones.

This pull request also includes some renaming for clarity.

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

@codecov-commenter

codecov-commenter commented Jun 22, 2024 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 39.70%. Comparing base (e8f1990) to head (112aabd).
⚠️ Report is 1023 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5246      +/-   ##
============================================
- Coverage     39.71%   39.70%   -0.02%     
+ Complexity     2433     2430       -3     
============================================
  Files           517      517              
  Lines         15496    15492       -4     
  Branches       2958     2958              
============================================
- Hits           6155     6151       -4     
  Misses         9052     9052              
  Partials        289      289              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vil02
vil02 merged commit 308bdcf into TheAlgorithms:master Jun 22, 2024
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.

3 participants