iphone电话铃声# Apple - 家有苹果
c*y
1 楼
Given a integer, output its previous and next neighbor number which has
the same number of bit 1 in their binary representation.
下面为什么去判断(number & 3) != 2?
while ((number & 3) != 2) { // for right neighbor, change this line to
// (number & 3) != 1
the same number of bit 1 in their binary representation.
下面为什么去判断(number & 3) != 2?
while ((number & 3) != 2) { // for right neighbor, change this line to
// (number & 3) != 1