You are viewing a single comment's thread. Return to all comments →
Python solution
def icecreamParlor(m, arr): d = dict() for i in range(len(arr)): if m - arr[i] in d: return [d[m - arr[i]]+1, i+1] else: d[arr[i]] = i
Seems like cookies are disabled on this browser, please enable them to open this website
Ice Cream Parlor
You are viewing a single comment's thread. Return to all comments →
Python solution