Ice Cream Parlor

  • + 0 comments

    Solution of Ice Cream Parlor

    def icecreamParlor(m, arr):
        # Write your code here
        
        l1=[]
        for i in range(0,len(arr)):
            for j in range(i+1,len(arr)):
                if(arr[i] + arr[j] == m):
                    l1.append(i+1)
                    l1.append(j+1)
                    break
                    
        return l1