Concept Flow - Check if Number is Even or Odd Using Bits
Start with number n
Perform bitwise AND: n & 1
Is result 0?
Yes→Number is Even
No
Number is Odd
We check the last bit of the number using bitwise AND with 1. If it is 0, the number is even; if 1, it is odd.
