Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def inserer(a,x) :
- if a = [] :
- return [x]
- else :
- y = a.pop()
- if y > x :
- inserer(a,x) ; a.append(y)
- else :
- a.append(y) ; a.append(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement