Last updated
Last updated
Given a binary string s
and an integer k
.
Return True if every binary code of length k
is a substring of s
. Otherwise, return False.
Example 1:
Example 2:
Example 3:
Example 4:
Example 5:
Constraints:
1 <= s.length <= 5 * 10^5
s
consists of 0's and 1's only.
1 <= k <= 20