summaryrefslogtreecommitdiff
path: root/progs/a868.py
blob: fa2a9d21cb6679f22cb378a1d50ee6380c6976aa (plain)
1
2
3
4
5
6
7
8
9
def re_order(A):
    k = 0
    for i in A:
        if i:
            A[k] = i
            k = k + 1
    for i in range(k, len(A)):
        A[i] = 0
    return A