String window problem, need a hint

i might need help about string manipulation how do i do that ?how to check if all characters are in a substring?

Hi,

Just use the sliding window property in this problem. while the number of characters in string less than equal to the no. of characters in pattern increase the size of window . When the number of characters in the window becomes greater than the pattern shrink its size and store the minimum of the size of sliding window in the answer.

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.

can i have the code of it