1. 程式人生 > >[CareerCup] 5.3 Next Binary Representation 下一個二進位制表達

[CareerCup] 5.3 Next Binary Representation 下一個二進位制表達

5.3 Given a positive integer, print the next smallest and the next largest number that have the same number of 1 bits in their binary representation.