Ice Cream Parlor

  • + 0 comments
    def icecreamParlor(m, arr):
        for i,e in enumerate(arr):
            n = (arr[:i]+arr[i+1:])
            if m-e in n:
                return [i+1, n.index(m-e)+2]