Even or Odd
04/04/2020
Introduction
One of the typical interview questions is deciding about a number if it is even or odd. The task usually goes by given a integer (or array of integers), return a bool (or array of bools) indicating if the number is odd or even.
A typical solution to the problem is using integer remainder operator:
public bool IntegerRemainder(int i) => i % 2 != 0;