Minimum window substring intuition

i want to display the window containing all the characters of the pattern .

@Anushka_Jha, I understood your algo , you are using sliding window to solve this problem ,
but you are using seperate frequency hashmaps to store the count which make the code complex , i have simplified your code

refer this : https://ide.codingblocks.com/s/265677
I have properly commented the code
In case of any doubt feel free to ask :slight_smile:

1 Like

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.