You are viewing a single comment's thread. Return to all comments →
Here is my solution in Python 3!
def countApplesAndOranges(s, t, a, b, apples, oranges): print(len(list(filter(lambda x: s<=x<=t, [a+p for p in apples])))) print(len(list(filter(lambda x: s<=x<=t, [b+p for p 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 →
Here is my solution in Python 3!