Hacker News new | ask | show | jobs
by umdiff 2649 days ago
I think this works perfectly if your list has 2^n elements. Otherwise, you have to resort to multiplying by imprecise fractions.
1 comments

You would only need one special case: if a list (top level or not) has 2n+1 numbers, weight the last one differently.