eg: str= aaaaa
pat=aa
what would be the string window in this case?
If a character appears multiple times in the pattern, then how many times sould it appear in the window
Hello @roopali1710,
The string window would be
aa
reason:
This is the smallest window that contains the characters of the pattern.
Hope, this would help.
Give a like if you are satisfied.