Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kzrdude
· 3y ago · 0 comments
That simple sequence, 1, 10, 100 etc, the digit is at least computable in O(1) time which is maybe a good way to look at predictability. It's a simple rule and no effort similar to computing every digit before it is required.
Comments
[–]
matvore
3y ago
If you store the number of zeros as value z, computing z+1 is O(log n) in the long run for unbounded values of z.