Does the order in which the characters are found matter?
Does the order of characters matter?
@tusharnitharwal
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.
Actually I was asking does the order of characters in the string matter or not
no order doesnt matter