Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1.    
  2. def fusion (a,b):
  3.     c=[]
  4.     if a==[] or b==[]:
  5.         c=a+b
  6.     y=a.pop()
  7.     z=b.pop()
  8.     c=fusion(a,b)+[min(y,z)]+[max(y,z)]
  9.     return c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement