Pregunta de entrevista de Apple

Bitwise questions like counting 1 bits in an integer.