Check All Binary Codes of Size K
Determine whether a given binary string `s` contains every possible binary code of length `k` as a contiguous substring. Return `true` if all 2^k distinct binary codes appear, and `false` otherwise.
Determine whether a given binary string `s` contains every possible binary code of length `k` as a contiguous substring. Return `true` if all 2^k distinct binary codes appear, and `false` otherwise.