 Concevoir un algorithme efficace pour inverser un tableau
 [3, 5, 6, 9, 12]
 def reverse_array(array):\n left = 0\n right = len(array) - 1\n\n while left < right:\n temp = array[left]\n array[left] = array[right]\ n array[right] = temp\n\n left += 1\n right -= 1\n \n return array