#1909. 交换数字

交换数字

编写一个函数,不用临时变量,直接交换numbers = [a, b]ab的值。

示例:

输入: 1 2
输出: 2 1

提示:

  • numbers.length == 2
  • -2147483647 <= numbers[i] <= 2147483647