You are viewing a single comment's thread. Return to all comments →
Ruby way:
puts apples.count { |apple| (a + apple).between?(s, t) } puts oranges.count { |orange| (b + orange).between?(s, t) }
Seems like cookies are disabled on this browser, please enable them to open this website
Apple and Orange
You are viewing a single comment's thread. Return to all comments →
Ruby way: