String Window Question

I don’t know whta’s wrong. I checked all test cases which I could think of and everything seems fine.
here’s the link to the code

Hi Yogesh, what if no substring of S1 contains all characters of S2? I feel you haven’t handled that case properly. Try and let me know.

i tried handling that case .

still there are 6 wrong answers. previously there were 8 wrong. The link to code is same https://ide.codingblocks.com/s/145755

Hi Yogesh, it is a little hard to understand your approach from the code would you mind explaining your approach to me?
also consider the testcase
s1 : helloworld
s2: low
your code outputs “No string”.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.