摘要:
取反运算简单使用 参考: https://zhuanlan.zhihu.com/p/261080329 https://blog.csdn.net/qq_19272431/article/details/78564391 // 推断: // 1. 计算机中的位运算都是补码运算,因为数字存储到计算机的 阅读全文
摘要:
异或运算的简单使用 参考: https://blog.csdn.net/qq_19272431/article/details/78564391 交换两个数 let a = 5 let b = 9 //a ^ b ^ b = a ^ 0 = a; a ^= b; // <=> a = a + b b 阅读全文
摘要:
LeetCode每日一练 Revese Interger /* * @Author: fox * @Date: 2022-04-23 07:09:48 * @LastEditors: fox * @LastEditTime: 2022-04-23 08:33:19 * @Description: h 阅读全文