We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63a08ba commit 194c699Copy full SHA for 194c699
1 file changed
src/main/java/com/thealgorithms/maths/HappyNumber.java
@@ -1,8 +1,8 @@
1
package com.thealgorithms.maths;
2
3
/**
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.
+ * A Happy Number is defined as a number which eventually reaches 1 when replaced
+ * by the sum of the squares of each digit.
6
* If it falls into a cycle that does not include 1, then it is not a happy number.
7
*
8
* Example:
@@ -18,7 +18,7 @@ private HappyNumber() {
18
19
20
* Checks whether the given number is a Happy Number.
21
- * Uses Floyd’s Cycle Detection algorithm (tortoise and hare method)
+ * Uses Floyd’s Cycle Detection algorithm (tortoise and hare method)
22
* to detect loops efficiently.
23
24
* @param n The number to check
0 commit comments