def gps(s, x):
    """
    Calculates the maximum speed covered per hour in a list of distances traveled as described in
    the __doc__ of this module
    :param s: time in seconds
    :param x: list of arbitrary distances
    :return: maximum speed
    :rtype: int
    """
    # sanity check to return early if the length is less than or equal to 1, in short, less than 2
    if len(x) < 2:
        return 0

    # using zip to calculate the differences between adjacent elements in the list
    diff = [(3600.0 * (y - x)) / s for x, y in zip(x[:-1], x[1:])]

    # return the maximum diff
    return max(diff)