Added Sum of Squares Lagrange's Four Square algorithm implementation#6583
Merged
alxkm merged 4 commits intoTheAlgorithms:masterfrom Oct 2, 2025
Merged
Added Sum of Squares Lagrange's Four Square algorithm implementation#6583alxkm merged 4 commits intoTheAlgorithms:masterfrom
alxkm merged 4 commits intoTheAlgorithms:masterfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6583 +/- ##
=========================================
Coverage 75.49% 75.50%
- Complexity 5680 5688 +8
=========================================
Files 693 694 +1
Lines 19554 19570 +16
Branches 3786 3791 +5
=========================================
+ Hits 14762 14776 +14
- Misses 4216 4217 +1
- Partials 576 577 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Author
|
Please accept and add add hacktoberfest accepted label |
alxkm
approved these changes
Oct 2, 2025
Member
alxkm
left a comment
There was a problem hiding this comment.
Looks good. Thanks 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.
The implementation includes:
Lagrange's Four Square Theorem algorithm(Very useful for competitive programming students will surely get help)(https://en.wikipedia.org/wiki/Lagrange%27s_four-square_theorem)
Comprehensive test cases covering all scenarios (1, 2, 3, and 4 squares)
Proper documentation and code structure
Edge case handling
clang-format -i --style=file path/to/your/file.java