Skip to content

Commit efa3855

Browse files
anonimakignacio-chiazzo
authored andcommitted
update explanation square using ^
1 parent 15f8100 commit efa3855

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

LeetcodeProblems/Algorithms/Happy_Number.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ Example 1:
1616
Input: n = 19
1717
Output: true
1818
Explanation:
19-
12 + 92 = 82
20-
82 + 22 = 68
21-
62 + 82 = 100
22-
12 + 02 + 02 = 1
19+
1^2 + 9^2 = 82
20+
8^2 + 2^2 = 68
21+
6^2 + 8^2 = 100
22+
1^2 + 0^2 + 0^2 = 1
2323
2424
Example 2:
2525
Input: n = 2
@@ -46,4 +46,4 @@ function checkHappyNumber(n){
4646
return checkHappyNumber(digit)
4747
}
4848

49-
module.exports.isHappy = isHappy;
49+
module.exports.isHappy = isHappy;

0 commit comments

Comments
 (0)