You are viewing a single comment's thread. Return to all comments →
def icecreamParlor(m, arr): return [[i + 1, len(arr) - arr[::-1].index(m - v)] for i, v in enumerate(arr) if m - v in arr[i+1:]][0]
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 →