Java icon indicating copy to clipboard operation
Java copied to clipboard

Added function to check happy number with testcases

Open TaranjeetSinghKalsi opened this issue 4 months ago • 1 comments

Added a function to check if a given number is a happy number or not. Also added and improved testcases.

  • [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

TaranjeetSinghKalsi avatar Oct 25 '25 18:10 TaranjeetSinghKalsi

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 78.16%. Comparing base (e21aee8) to head (b1994b9).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6943      +/-   ##
============================================
+ Coverage     78.15%   78.16%   +0.01%     
- Complexity     6503     6507       +4     
============================================
  Files           741      741              
  Lines         21675    21680       +5     
  Branches       4236     4238       +2     
============================================
+ Hits          16940    16947       +7     
+ Misses         4063     4062       -1     
+ Partials        672      671       -1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov-commenter avatar Oct 25 '25 19:10 codecov-commenter