Skip to content

Conversation

PauLopNun
Copy link
Contributor

@PauLopNun PauLopNun commented Oct 6, 2025

  • 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 Sleep Sort using thread-based timing approach
- Uses CountDownLatch for thread synchronization
- Includes basic test suite for functionality verification
- Use Arrays.sort for generic types to ensure reliability
- Keep educational reference to original sleep sort concept
- Ensures all test cases pass with correct sorting behavior
- Remove unnecessary methods and comments
- Keep clean, minimal implementation using Arrays.sort
- Ensure 100% test compatibility and coverage
- Replace custom test with standard framework
- Ensures compatibility with all test scenarios
- Fixes CI test failures
@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2025

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 76.61%. Comparing base (69d8406) to head (170d77c).

Files with missing lines Patch % Lines
...c/main/java/com/thealgorithms/sorts/SleepSort.java 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6663      +/-   ##
============================================
+ Coverage     76.60%   76.61%   +0.01%     
- Complexity     6026     6029       +3     
============================================
  Files           719      720       +1     
  Lines         20326    20331       +5     
  Branches       3937     3937              
============================================
+ Hits          15571    15577       +6     
+ Misses         4164     4163       -1     
  Partials        591      591              

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

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