package
0.0.0-20241209140624-9fce2a725d55
Repository: https://github.com/elven9/my-leetcode.git
Documentation: pkg.go.dev
# README
Happy Number
Solution Idx | Time Complexity | Space Complexity | Comment |
---|---|---|---|
1 | O(1) | O(1) | Approximation of the Problem, with try error of 100 times |
2 | ? | O(1) | Cycle detection, Idk how many times will the number reach the cycle |