Lsize=0
while f in stream:
if L = None
L = new List
L.val = f
L.next = NULL
Lsize++
elsif L.val >= f
continue
else // L.val < f
current = L
while current
if current.val > f:
next = current.val.next
current.next = new List
current.next.next = next
current.next.val = f
if Lsize = N
L = L.next
current = current.next
Why is a manhole round?
Il y a 12 ans
Aucun commentaire:
Enregistrer un commentaire