 Fusionne deux tableaux triés d'entiers en un seul tableau trié.
 [1, 2, 5, 8], [3, 4, 6, 7]
def mergeSortedArrays(arr1, arr2):\n outputArray = []\n arr1_Index = 0\n arr2_Index = 0\n\n while arr1_Index < len(arr1) and arr2_Index < len(arr2):\n if arr1[arr1_Index] < arr2[arr2_Index] :\n outputArray.append(arr1[arr1_Index])\n arr1_Index += 1\n else :\n outputArray.append(arr2[arr2_Index])\n arr2_Index += 1\n tandis que arr1_Index < len (arr1):\n outputArray.append(arr1[arr1_Index])\n arr1_Index += 1\n \n tandis que arr2_Index < len(arr2):\n outputArray.append(arr2[arr2_Index])\n arr2_Index += 1 \n renvoie OutputArray\n \narr1 = [1, 2, 5, 8]\narr2 = [3, 4, 6, 7]\nmergeSortedArrays(arr1, arr2) # [1,2,3,4,5,6 ,7,8]