Pergunta de entrevista da empresa Intel Corporation

Explain what the following code does: ( ( n & ( n-1)) == 0). From cracking the coding interview

Resposta da entrevista

Sigiloso

16 de set. de 2019

Checks if n is a power of 2 (or if n is 0)

1