Ice Cream Parlor

  • + 0 comments

    Python

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