Problem 3821 · Hard

Find Nth Smallest Integer With K One Bits

Use binomial counts to place each set bit of the answer from the highest position down.

Open the interactive visualisation