Box interview question

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

Interview Answers

Anonymous

17 Jan 2022

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

Anonymous

23 Apr 2022

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