Problem 1016 · Medium

Binary String With Substrings Representing 1 To N

Check that the binary form of every number from 1 to n appears somewhere inside the binary string.

Open the interactive visualisation