Added HappyNumber algorithm in maths section#6571
Added HappyNumber algorithm in maths section#6571DenizAltunkapan merged 8 commits intoTheAlgorithms:masterfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6571 +/- ##
============================================
+ Coverage 76.48% 76.56% +0.07%
- Complexity 6010 6014 +4
============================================
Files 718 718
Lines 20296 20292 -4
Branches 3935 3935
============================================
+ Hits 15524 15536 +12
+ Misses 4181 4164 -17
- Partials 591 592 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hi Please let me know if you need any further details or adjustments. I’d appreciate any feedback when you get the chance. Thanks in advance for your time! |
DenizAltunkapan
left a comment
There was a problem hiding this comment.
@ruturajjadhav07 The interactive Happy Number implementation already exists here: HappyNumbersSeq.java.
However your version is cleaner, better structured, and indeed it belongs in the maths package. Delete the old interactive class in favor of this one. This would improve the library’s organization and maintainability.
I've removed the old |
Description
This PR adds an implementation of the Happy Number algorithm in
HappyNumber.javaalong with corresponding unit tests inHappyNumberTest.java.clang-format -i --style=file path/to/your/file.javaNotes