You are viewing a single comment's thread. Return to all comments →
Python 3
def icecreamParlor(m, arr): for idx, i in enumerate(arr): if arr[idx+1:].count(m-i) > 0: return idx+1, arr[idx+1:].index(m-i)+idx+2
Ice Cream Parlor
You are viewing a single comment's thread. Return to all comments →
Python 3