Pergunta de entrevista da empresa Command Alkon

How would you determine if a number is even or odd programmatically?

Resposta da entrevista

Sigiloso

1 de abr. de 2016

I used bitwise operations to check if the least significant bit was set to one. Another solution could be to use modulo operators.