<doocs>1437.Check If All 1's Are at Least Length K Places Away_1.py
def kLengthApart( nums: List[int], k: int) -> bool:
    j = -1
    for i, v in enumerate(nums):
        if v == 1:
            if j > -1 and i - j - 1 < k:
                return False
            j = i
    return True
def sample_funcname ( var_0 : List [ int ] , var_3 : int ) -> bool :
    var_6 = - 1
    for var_8 , var_9 in enumerate ( var_0 ) :
        if var_9 == 1 :
            if var_6 > - 1 and var_8 - var_6 - 1 < var_3 :
                return False
            var_6 = var_8
    return True
