Skip to content

Commit c94e475

Browse files
authored
Update 56. 快乐数.md
1 parent 7b35bdb commit c94e475

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

56. 快乐数.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
输入:n = 19
55
输出:true
66
解释:
7-
12 + 92 = 82
8-
82 + 22 = 68
9-
62 + 82 = 100
10-
12 + 02 + 02 = 1
7+
1**2 + 9**2 = 82
8+
8**2 + 2**2 = 68
9+
6**2 + 8**2 = 100
10+
1**2 + 0**2 + 0**2 = 1
1111
```
1212

1313
```
@@ -25,4 +25,4 @@ def isHappy(self, n: int) -> bool:
2525
slow_runner = get_next(slow_runner)
2626
fast_runner = get_next(get_next(fast_runner))
2727
return fast_runner == 1
28-
```
28+
```

0 commit comments

Comments
 (0)