def average_pair(array, target):
    """
    Time: O(n)
    Space: O(n)
    Returns true if there is a pair of numbers in the array that
    when averaged are equal to the target. False otherwise
    :param array: positive or negative int or floats
    :param target: positive or negative int or float
    :return: Bool
    """
    # hash table
    available_numbers = set()
    for item in array:
        temp = 2*target - item
        if temp in available_numbers:
            return True
        available_numbers.add(item)

    return False