<doocs>1266.Minimum Time Visiting All Points_1.py
def minTimeToVisitAllPoints( points: List[List[int]]) -> int:
    res = 0
    x0, y0 = points[0][0], points[0][1]
    for x1, y1 in points[1:]:
        res += max(abs(x0 - x1), abs(y0 - y1))
        x0, y0 = x1, y1
    return res
def sample_funcname ( var_0 : List [ List [ int ] ] ) -> int :
    var_4 = 0
    var_5 , var_7 = var_0 [ 0 ] [ 0 ] , var_0 [ 0 ] [ 1 ]
    for var_8 , var_9 in var_0 [ 1 : ] :
        var_4 += max ( abs ( var_5 - var_8 ) , abs ( var_7 - var_9 ) )
        var_5 , var_7 = var_8 , var_9
    return var_4
