Number of Set bits

You have 4-byte integer. Write a program to return the number of set bits in O(1) complexity. You could use some space if u need.

Author: Nitsdheerendra
Login to Answer
Sort By:
Oldest
|
Newest
|
Vote
|
My Answer