Java
Java copied to clipboard
feat: Add `KCenters` new algorithm with Junit tests
- [x] I have read CONTRIBUTING.md.
- [x] This pull request is all my own work -- I have not plagiarized it.
- [x] All filenames are in PascalCase.
- [x] All functions and variable names follow Java naming conventions.
- [x] All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
- [x] All new code is formatted with
clang-format -i --style=file path/to/your/file.java
Codecov Report
Attention: Patch coverage is 94.73684% with 1 line in your changes missing coverage. Please review.
Project coverage is 69.44%. Comparing base (
e0ab1d3) to head (96026a3).
| Files with missing lines | Patch % | Lines |
|---|---|---|
| ...a/com/thealgorithms/greedyalgorithms/KCenters.java | 94.73% | 0 Missing and 1 partial :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## master #5806 +/- ##
============================================
+ Coverage 69.43% 69.44% +0.01%
- Complexity 4688 4695 +7
============================================
Files 625 626 +1
Lines 17155 17174 +19
Branches 3307 3313 +6
============================================
+ Hits 11911 11927 +16
- Misses 4789 4790 +1
- Partials 455 457 +2
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.