...

/

Challenge 2: Check If Number Is Even/Odd

Challenge 2: Check If Number Is Even/Odd

This is an example of another Bitwise question. Think of the rightmost bit of a number and think of some logic that could solve this.

Introduction

This is a classic question in Mathematics 🧮 for computers.

For example:

Inputs: 1, 3, 5,
...