Ice Cream Parlor

  • + 0 comments

    Here is my Python solution!

    def icecreamParlor(m, arr):
        for f1 in range(len(arr)):
            for f2 in range(f1 + 1, len(arr)):
                if arr[f1] + arr[f2] == m:
                    return sorted([f1 + 1, f2 + 1])