Skip to content

Commit 194c699

Browse files
Fix Checkstyle: remove trailing spaces in HappyNumber
1 parent 63a08ba commit 194c699

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/com/thealgorithms/maths/HappyNumber.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.thealgorithms.maths;
22

33
/**
4-
* A Happy Number is defined as a number which eventually reaches 1 when replaced
5-
* by the sum of the squares of each digit.
4+
* A Happy Number is defined as a number which eventually reaches 1 when replaced
5+
* by the sum of the squares of each digit.
66
* If it falls into a cycle that does not include 1, then it is not a happy number.
77
*
88
* Example:
@@ -18,7 +18,7 @@ private HappyNumber() {
1818

1919
/**
2020
* Checks whether the given number is a Happy Number.
21-
* Uses Floyd’s Cycle Detection algorithm (tortoise and hare method)
21+
* Uses Floyd’s Cycle Detection algorithm (tortoise and hare method)
2222
* to detect loops efficiently.
2323
*
2424
* @param n The number to check

0 commit comments

Comments
 (0)