Added tournament sort algorithm#1046
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1046 +/- ##
==========================================
+ Coverage 95.84% 95.85% +0.01%
==========================================
Files 394 395 +1
Lines 30084 30160 +76
==========================================
+ Hits 28833 28909 +76
Misses 1251 1251 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@siriak Hello could you please take a look at this PR when you have a moment? |
There was a problem hiding this comment.
Pull request overview
Adds a new sorting algorithm implementation (tournament sort) to the sorting module and wires it into the module exports and repository directory index.
Changes:
- Introduces
tournament_sortimplementation and unit tests insrc/sorting/tournament_sort.rs. - Exports the new algorithm from
src/sorting/mod.rs. - Adds the algorithm link to
DIRECTORY.md.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
src/sorting/tournament_sort.rs |
New tournament sort implementation + tests. |
src/sorting/mod.rs |
Registers the new module and re-exports tournament_sort. |
DIRECTORY.md |
Adds the new algorithm to the Sorting section index. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Please check Copilot's comments if they are relevant |
|
@siriak I’ve made the necessary changes, and it should be ready for merging. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Description
Implements tournament sort algorithm.
https://en.wikipedia.org/wiki/Tournament_sort
Type of change
Checklist:
cargo clippy --all -- -D warningsjust before my last commit and fixed any issue that was found.cargo fmtjust before my last commit.cargo testjust before my last commit and all tests passed.mod.rsfile within its own folder, and in any parent folder(s).DIRECTORY.mdwith the correct link.COUNTRIBUTING.mdand my code follows its guidelines.