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.

Examples
Input: ["01",1]
Output: true
Hints

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.