Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
umdiff
· 7y ago · 0 comments
I think this works perfectly if your list has 2^n elements. Otherwise, you have to resort to multiplying by imprecise fractions.
Comments
[–]
_bxg1
7y ago
You would only need one special case: if a list (top level or not) has 2n+1 numbers, weight the last one differently.