String Window Partially got accepted but failing at some cases


please tell me where I went wrong

Hey your program fails for the below test case:
s1 = saqrty asdfgh qazxsw
s2 = asq

The question asks you to find “minimum length substring of the string1 which contains all the characters of string2” rather than “Minimum length sub string which has characters exactly in the same order”

Ohh :scream:: yes I got it
answer for this is “saq”

thank you :slight_smile: