Check If a String Contains All Binary Codes of Size K

Solution Code

Time Complexity

O(N · K)

Space Complexity

O(2^K · K)