摘要: 取反运算简单使用 参考: https://zhuanlan.zhihu.com/p/261080329 https://blog.csdn.net/qq_19272431/article/details/78564391 // 推断: // 1. 计算机中的位运算都是补码运算,因为数字存储到计算机的 阅读全文
posted @ 2022-04-23 22:13 白い故雪 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 异或运算的简单使用 参考: 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 阅读全文
posted @ 2022-04-23 21:13 白い故雪 阅读(24) 评论(0) 推荐(0) 编辑
摘要: LeetCode每日一练 Revese Interger /* * @Author: fox * @Date: 2022-04-23 07:09:48 * @LastEditors: fox * @LastEditTime: 2022-04-23 08:33:19 * @Description: h 阅读全文
posted @ 2022-04-23 08:37 白い故雪 阅读(13) 评论(0) 推荐(0) 编辑