Find the nearest numbers that have same number of 1s for an integer

Related Tags