0202_happy-number

command
v0.0.0-...-60194e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2020 License: Unlicense Imports: 0 Imported by: 0

README

0202_happy-number

  1. map记录(最直观)
  2. Floyd's Cycle-Finding Algorithm:
    • 使用几个不同步长/速度的agent/function去计算, 若是有循环, 必会在某一个时刻求得同一个值
  3. 数学结论:
    • 只存在唯一的循环: 4, 16, 37, 58, 89, 145, 42, 20

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL