Ice Cream Parlor

  • + 0 comments

    **Python Solution : **

    from itertools import combinations
        
    def icecreamParlor(m, arr):
        # Write your code here
        store=[]
        comb=combinations(enumerate(arr),2)
        for (i,_),(j,_) in comb:
            if(arr[i]+arr[j]==m):
                store=[i+1,j+1]
        return store