You are viewing a single comment's thread. Return to all comments →
Alternate Python solution, make a range over the length of the house...
r = range(s,t+1) print(sum([a+x in r for x in apples])) print(sum([b+x in r for x 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 →
Alternate Python solution, make a range over the length of the house...