int a=4,b=9;
int[] tempArray={a,b};
int temp=a-b;
System.out.println(tempArray[temp>>>31]);

引申:以可读性和时间换取空间

array[j] = array[i] + array[j];
array[i] = array[j] - array[i];
array[j] = array[j] - array[i];

相关文章:

  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-08-08
  • 2021-11-21
  • 2021-11-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2021-12-10
  • 2022-12-23
相关资源
相似解决方案