Box Interview Question

Count the number of '1s' in an unsigned integer binary.

Interview Answers

Anonymous

Jan 17, 2022

Solved it with bit shifting but the interviewer would never even let me run it to demonstrate that it worked.

Anonymous

Apr 23, 2022

I got the exact same questions. However, my interviewer let me run and it worked, so we moved on to next question.