摘要: Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runti 阅读全文
posted @ 2019-01-16 15:26 乐乐章 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 简介 1 位逻辑运算符: & (位 “与”) and 2个都为1 才是1 0^0 = 0 , 0^1 = 0, 1^0 = 0 1^1= 1 ^ (位 “异或”) 相同为0,不同为1 0^0 = 0 , 1^1 = 0, 1^0 = 1 1^0 = 1 | (位 “或”) or 有一个是1 就是1 阅读全文
posted @ 2019-01-16 15:25 乐乐章 阅读(1070) 评论(0) 推荐(0) 编辑