Domanda di colloquio di TPS

Write a function which tells the input is even or not without using modulus and built-in functions?

Risposta di colloquio

Anonimo

24 apr 2017

Convert input in binary, if the least significant bit is zero than your input is even.