Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fusionR(T, A, B, C):
- t = deepcopy(T)
- if A > B or B > C:
- return t
- elif t[B + 1] >= t[A]:
- return fusionR(t, A + 1, B, C)
- elif t[A] > t[B + 1]:
- print("a")
- t = T[:A]+[T[B+1]]+T[B+1:A]+T[B+2:]
- return fusionR(t, A+1, B+1 , C)
- return t
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement