You are viewing a single comment's thread. Return to all comments →
In python 3
def getMoneySpent(keyboards, drives, b): l1=[] for i in keyboards: for j in drives: if i+j<=b: l1.append(i+j) if len(l1)==0:return -1 return max(l1)
Electronics Shop
You are viewing a single comment's thread. Return to all comments →
In python 3