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