摘要:
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 阅读全文
摘要:
简介 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 阅读全文