SHARE
TWEET

Untitled

a guest Feb 14th, 2020 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def fusionR(T, A, B, C):
  2.     t = deepcopy(T)
  3.     if A > B or B > C:
  4.         return t
  5.     elif t[B + 1] >= t[A]:
  6.         return fusionR(t, A + 1, B, C)
  7.     elif t[A] > t[B + 1]:
  8.         print("a")
  9.         t = T[:A]+[T[B+1]]+T[B+1:A]+T[B+2:]
  10.         return fusionR(t, A+1, B+1 , C)
  11.     return t
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top