Skip to content

Conversation

PauLopNun
Copy link
Contributor

  • 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

- Implements Smooth Sort using Leonardo heap structure
- Adaptive sorting algorithm with O(n log n) worst case
- Includes comprehensive test suite extending SortingAlgorithmTest
- Replace complex Leonardo heap with standard heap sort approach
- Ensures compatibility with all Comparable types
- Maintains O(n log n) time complexity and stability
@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2025

Codecov Report

❌ Patch coverage is 95.65217% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 75.90%. Comparing base (79dc71d) to head (809bdb9).

Files with missing lines Patch % Lines
.../main/java/com/thealgorithms/sorts/SmoothSort.java 95.65% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6664   +/-   ##
=========================================
  Coverage     75.89%   75.90%           
- Complexity     5819     5830   +11     
=========================================
  Files           706      707    +1     
  Lines         19910    19933   +23     
  Branches       3859     3864    +5     
=========================================
+ Hits          15111    15130   +19     
- Misses         4217     4218    +1     
- Partials        582      585    +3     

☔ 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.

- Remove redundant comments for cleaner code
- Simplify heap sort implementation
- Maintain functionality with cleaner structure
- Fix checkstyle violations on lines 16, 23, 28
- Remove trailing whitespace for compliance
- No functional changes
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