Problem 1461 · Medium

Check If a String Contains All Binary Codes of Size K

Check whether every binary string of length k appears as a substring. The visual slides a window over the string and marks each distinct code seen.

Open the interactive visualisation