You are viewing a single comment's thread. Return to all comments →
Python Version:
def whatFlavors(cost, money): remains = dict() for index, c in enumerate(cost): if c not in remains: remains[money - c] = index + 1 else: print(remains[c], index + 1)
Hash Tables: Ice Cream Parlor
You are viewing a single comment's thread. Return to all comments →
Python Version: