Skip to content

Refactor Heapsort: add docs, simplify sink with for loop#1310

Merged
williamfiset merged 2 commits into
masterfrom
refactor-heapsort
Apr 1, 2026
Merged

Refactor Heapsort: add docs, simplify sink with for loop#1310
williamfiset merged 2 commits into
masterfrom
refactor-heapsort

Conversation

@williamfiset

Copy link
Copy Markdown
Owner

Summary

  • Added class-level Javadoc with time/space complexity
  • Replaced while (true) + break in sink() with a for loop bounded by left child index
  • Applied single-line body formatting rule
  • Cleaned up comments and imports

Test plan

  • All 10 existing HeapsortTest tests pass
  • Compiles and runs correctly

🤖 Generated with Claude Code

williamfiset and others added 2 commits March 31, 2026 17:57
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@williamfiset williamfiset merged commit ccb76d1 into master Apr 1, 2026
2 checks passed
@williamfiset williamfiset deleted the refactor-heapsort branch April 3, 2026 22:50
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.

1 participant