Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. def inserer(a,x) :
  2.     if a = [] :
  3.         return [x]
  4.     else :
  5.         y = a.pop()
  6.         if y > x :
  7.             inserer(a,x) ; a.append(y)
  8.         else :
  9.             a.append(y) ; a.append(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement