You are viewing a single comment's thread. Return to all comments →
def getMoneySpent(b, keyboards, drives): # # Write your code here. final = [] for i in keyboards: for j in drives: if (i+j) <= b: final.append(i+j) if len(final) == 0: return -1 else: return max(final)
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 →