Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Experiment: Mapping real numbers between 0 to 1 to natural numbers.
So if level = lambda n: 1-int(math.log10(1./n))
We only ever generate [‘.’ + ‘0’ * (level(n) – 1) + i for i in range(9)]
There are no comments on this comment yet.
So if level = lambda n: 1-int(math.log10(1./n))
We only ever generate [‘.’ + ‘0’ * (level(n) – 1) + i for i in range(9)]