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