def stray(arr):
    """
    You are given an odd-length array of integers, in which all of them are the same, except for one single number.
    :param arr: an array of integers.
    :return: the single different number in the array.
    """
    a, b = set(arr)
    return a if arr.count(a) == 1 else b