Ice Cream Parlor

  • + 0 comments
    def icecreamParlor(m, arr):
        selected_flavors = [[i+1, j+1] for i in range(0, n-1) for j in range(i+1, n) if arr[i]+arr[j] == m]
        return selected_flavors[0]