Bin given limits: Difference between revisions
m
→{{header|Ruby}}
Line 1,529:
=={{header|Ruby}}==
Perform a binary search on the data to select the limit and keep a tally on that. Uses
<lang ruby>Test = Struct.new(:limits, :data)
tests = Test.new( [23, 37, 43, 53, 67, 83],
|