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

Grandyang發表於2015-08-12

 

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.

相關文章