<doocs>1936.Add Minimum Number of Rungs_1.py
def addRungs( rungs: List[int], dist: int) -> int:
    prev = res = 0
    for rung in rungs:
        res += (rung - prev - 1) // dist
        prev = rung
    return res
def sample_funcname ( var_0 : List [ int ] , var_3 : int ) -> int :
    var_6 = var_4 = 0
    for var_7 in var_0 :
        var_4 += ( var_7 - var_6 - 1 ) // var_3
        var_6 = var_7
    return var_4
