Monday, June 17, 2013

Counting the number of set bits in an integer

Reference: http://graphics.stanford.edu/~seander/bithacks.html




Time Complexity: O(log n)

No comments:

Post a Comment