<qiyuangong>025_Reverse_Nodes_i_ k-Group_1.py
def reverseList( head, end):
    pos = head.next
    last = end
    next_start = pos
    while pos != end:
        head.next = pos
        last_pos = pos
        pos = pos.next
        last_pos.next = last
        last = last_pos
    return next_start
def sample_funcname ( var_0 , var_1 ) :
    var_3 = var_0.next
    var_4 = var_1
    var_5 = var_3
    while var_3 != var_1 :
        var_0.next = var_3
        var_6 = var_3
        var_3 = var_3.next
        var_6.next = var_4
        var_4 = var_6
    return var_5
