You are viewing a single comment's thread. Return to all comments →
This was my code, could anyone please help with what's the problem here?
def countApplesAndOranges(s, t, a, b, apples, oranges): apls = list(apples) orls = list(oranges) avf = [] ovf = [] for v in apls: if (a+v)>=s: avf.append(v) for g in orls: if (b+g)<=t: ovf.append(g) print len(avf) print len(ovf)
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 →
This was my code, could anyone please help with what's the problem here?