You are viewing a single comment's thread. Return to all comments →
def icecreamParlor(m, arr): dic = dict() for i in range(len(arr)): n, c = arr[i], m - arr[i] if n not in dic: dic[c] = i+1 else: return [dic[n], i+1]
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 →