You are viewing a single comment's thread. Return to all comments →
Python: def countApplesAndOranges(s, t, a, b, apples, oranges): print(sum([s<=i+a<=t for i in apples])) print(sum([s<=i+b<=t for i in oranges]))
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 →
Python: def countApplesAndOranges(s, t, a, b, apples, oranges): print(sum([s<=i+a<=t for i in apples])) print(sum([s<=i+b<=t for i in oranges]))