WR Home      Topic Home      Chapter:  1  2  3 
<Previous Next>

Chapter 03

Commonly used bit-manipulation functions

Page 14

Some Questions on Bit Manipulation



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






Reference (Book):
Craking the coding interview (Fifth Edition)
                         Gayle Laakmann McDowell
(Detailed solution is given in book)



WR Home      Topic Home      Chapter:  1  2  3 
<Previous Next>