Add MaxAlternatingSum algorithm implementation#7085
Add MaxAlternatingSum algorithm implementation#7085Jashnavi25 wants to merge 3 commits intoTheAlgorithms:masterfrom
Conversation
Refactored maxAlternatingSum method to use squared values and improved variable naming.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7085 +/- ##
============================================
- Coverage 78.50% 78.44% -0.06%
+ Complexity 6752 6750 -2
============================================
Files 759 760 +1
Lines 22402 22416 +14
Branches 4400 4403 +3
============================================
- Hits 17587 17585 -2
- Misses 4109 4123 +14
- Partials 706 708 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hi maintainers 👋 This PR adds a new algorithm All checks passed successfully ✔️ Kindly review when you get time. |
|
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! |
|
Please reopen this pull request once you have made the required changes. If you need help, feel free to ask in our Discord server or ping one of the maintainers here. Thank you for your contribution! |
This PR adds a Java implementation of Max Alternating Sum to the devutils package.
Includes:
✔ Javadoc documentation
✔ Clean formatting and package declaration
✔ Sorting + arithmetic based optimal algorithm
✔ Follows TheAlgorithms conventions
Time Complexity: O(n log n)
Space Complexity: O(n)