Skip to content

refactor: cleanup CycleSort #5271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Jul 13, 2024
Merged

refactor: cleanup CycleSort #5271

merged 16 commits into from
Jul 13, 2024

Conversation

alxkm
Copy link
Contributor

@alxkm alxkm commented Jul 1, 2024

Cleanup CycleSort. Adding test for it. Simplify code.

  • 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
Copy link

codecov-commenter commented Jul 1, 2024

Codecov Report

Attention: Patch coverage is 73.91304% with 6 lines in your changes missing coverage. Please review.

Project coverage is 40.66%. Comparing base (2d6c39c) to head (861ae11).

Files Patch % Lines
...c/main/java/com/thealgorithms/sorts/CycleSort.java 73.91% 2 Missing and 4 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5271      +/-   ##
============================================
+ Coverage     40.50%   40.66%   +0.16%     
- Complexity     2494     2503       +9     
============================================
  Files           519      519              
  Lines         15470    15447      -23     
  Branches       2950     2949       -1     
============================================
+ Hits           6266     6282      +16     
+ Misses         8915     8870      -45     
- Partials        289      295       +6     

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

Copy link
Member

@BamaCharanChhandogi BamaCharanChhandogi left a comment

Choose a reason for hiding this comment

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

Looking good but here add more test cases

@alxkm
Copy link
Contributor Author

alxkm commented Jul 4, 2024

Looking good but here add more test cases

Thank you. I've been eager to enhance test coverage for sorting algorithms for quite some time.

@alxkm alxkm requested a review from BamaCharanChhandogi July 4, 2024 21:09
@alxkm
Copy link
Contributor Author

alxkm commented Jul 12, 2024

Hello, @BamaCharanChhandogi everything fixed now

Copy link
Member

@BamaCharanChhandogi BamaCharanChhandogi left a comment

Choose a reason for hiding this comment

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

Looks good, thanks.

@BamaCharanChhandogi BamaCharanChhandogi merged commit 57878ca into TheAlgorithms:master Jul 13, 2024
5 checks passed
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