• + 0 comments

    def getMoneySpent(keyboards, drives, b): # # Write your code here. # sums = [keyboards[i]+ drives[j] if (keyboards[i]+ drives[j]) <= b else -1 for i in range(len(keyboards)) for j in range(len(drives))] return max(sums)