202-happy-number
快乐数字
解体思路
这题这要判断下这个快乐数循环中是否出现重复的值即可,有重复的值他就会无线循环就不是快乐数字
go解体思路
1 | func isHappy(n int) bool { |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
这题这要判断下这个快乐数循环中是否出现重复的值即可,有重复的值他就会无线循环就不是快乐数字
1 | func isHappy(n int) bool { |