You are viewing a single comment's thread. Return to all comments →
Here is my Python solution!
def icecreamParlor(m, arr): for f1 in range(len(arr)): for f2 in range(f1 + 1, len(arr)): if arr[f1] + arr[f2] == m: return sorted([f1 + 1, f2 + 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 →
Here is my Python solution!