Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 160 Bytes

File metadata and controls

3 lines (2 loc) · 160 Bytes

Question

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.