0
点赞
收藏
分享

微信扫一扫

通过异或交换变量

书呆鱼 2022-02-03 阅读 51
leetcode

异或性质:

a^a = 0

a^a^b = b

交换变量:

a = a^b

b = a^b

a = a^b

举报

相关推荐

0 条评论