You are viewing a single comment's thread. Return to all comments →
My python 3 solution:
def getMoneySpent(keyboards, drives, b): l = [] for x in keyboards: for y in drives: if x+y <= b: l.append(x+y) if not l: return -1 else: return max(l)
Seems like cookies are disabled on this browser, please enable them to open this website
Electronics Shop
You are viewing a single comment's thread. Return to all comments →
My python 3 solution: