You are viewing a single comment's thread. Return to all comments →
def icecreamParlor(m, arr) seen = [] for i in 0...arr.length comp = m - arr[i] if seen.include? comp ind = [seen.index(comp)+1, i+1] break end seen.push arr[i] end ind end
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 →