[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.

posted @ 2015-08-12 21:12  Grandyang  阅读(577)  评论(0编辑  收藏  举报
Fork me on GitHub