Problem 1009 · Easy

Complement of Base 10 Integer

Flip every bit of a positive integer's binary form while ignoring leading zeros. The bit row shows which digits flip and which leading positions are left out.

Open the interactive visualisation