Problem 693 · Easy

Binary Number with Alternating Bits

Check whether a number's binary digits alternate between 0 and 1. The visual reads the bits from the least significant end and compares each neighbouring pair.

Open the interactive visualisation