overround-rb/overround.rb
2026-11-14 07:36:18 +08:00

4 lines
55 B
Ruby

def overround(prices)
prices.sum { |p| 1.0 / p }
end