DRW Interview Question

Given an integer if that int was represented in binary how many bits would be set to '1'? (no time or space complexity requirements only accuracy)

Interview Answer

Anonymous

Sep 28, 2017

Use Brian Kernighan’s algorithm