Skip to main content
DevHives

Smallest Window Containing All Letters

Loading editor…

3 examples run when you press Run. Submit checks every hidden test too.

Case 1
Input:
"kmpxkzmp", "kp"
Expected:
"kmp"
Case 2
Input:
"aabxbab", "abb"
Expected:
"bab"
Case 3
Input:
"Book", "b"
Expected:
""
Ready

Run checks your code against the 3 examples. Submit checks it against all 163 tests and needs a free account. You can also try ideas in the free JavaScript or Python compiler.