Problem 1404 · Medium

Number of Steps to Reduce a Number in Binary Representation to One

Count the steps needed to reduce a binary string to 1, where even values are halved and odd values have one added. The visual walks the bits from the least significant end and tallies each operation.

Open the interactive visualisation