Pergunta de entrevista da empresa NVIDIA

Given a 32 bit unsigned integer, write a function (in C) that returns a count of how many bits are "1".

Resposta da entrevista

Sigiloso

4 de out. de 2015

leetcode question: number of 1 bits. To optimize, you need something like n = n & (n-1)