Quickselect median of medians#6661
Closed
lukmanu1 wants to merge 8 commits intoTheAlgorithms:masterfrom
Closed
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6661 +/- ##
============================================
+ Coverage 75.75% 75.79% +0.04%
- Complexity 5772 5791 +19
============================================
Files 703 704 +1
Lines 19777 19821 +44
Branches 3832 3842 +10
============================================
+ Hits 14982 15024 +42
- Misses 4215 4216 +1
- Partials 580 581 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
added 4 commits
October 6, 2025 01:09
Updated imports in DeterministicQuickSelectTest.java to explicitly list JUnit methods, resolving the 'AvoidStarImport' Checkstyle rule. Also re-added the missing 'org.junit.jupiter.api.Test' import.
Adjusted the import order in DeterministicQuickSelectTest.java, placing regular imports before static imports, to satisfy the project's formatting and linting rules.
Removed trailing comments on import statements and ensured correct ordering (regular before static) in DeterministicQuickSelectTest.java to pass the project's formatting checks.
Member
|
@lukmanu1 What's the difference between your implementation and the existing |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a deterministic QuickSelect algorithm using the Median of Medians method in the divideandconquer package.
Closes #6660
clang-format -i --style=file path/to/your/file.java