You are viewing a single comment's thread. Return to all comments →
def maximumToys(prices, k): # Write your code here prices.sort() for i in range(len(prices)): if k - prices[i] >= 0: k -= prices[i] else: return i
Seems like cookies are disabled on this browser, please enable them to open this website
Mark and Toys
You are viewing a single comment's thread. Return to all comments →