• + 0 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]))))