Pergunta de entrevista da empresa MetaCarta

Count all the bits that are on in a byte.

Resposta da entrevista

Sigiloso

25 de mar. de 2009

Presuming a loop was used to do this in the first iteration, how could this be made faster? See MIT Hakmem and other "bit twiddling tricks" for possible solutions.