Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fusion (a,b):
- c=[]
- if a==[] or b==[]:
- c=a+b
- y=a.pop()
- z=b.pop()
- c=fusion(a,b)+[min(y,z)]+[max(y,z)]
- return c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement