TPS Interview Question

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

Interview Answer

Anonymous

Apr 24, 2017

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