You are viewing a single comment's thread. Return to all comments →
python3:
def icecreamParlor(m, arr): mylist = [] for i in range(len(arr)): for j in range(len(arr)): if ( arr[i] + arr[j] ) == m and i < j: mylist.append(i+1) mylist.append(j+1) mylist.sort() return mylist
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 →
python3: