Problem 3133 · Medium

Minimum Array End

Write the bits of n minus one into the zero positions of x, from the lowest free position upward.

Open the interactive visualisation