Given two string str and pat. Find minimum window in str which contains all characters from string pat
AnswerBot
1y
Find minimum window in a string which contains all characters from another string.
Use a sliding window approach
Create a frequency map of characters in pat
Iterate through str and update frequency map
Ke...read more
Help your peers!
Add answer anonymously...
Top Flipkart Software Developer interview questions & answers
Popular interview questions of Software Developer
Top HR questions asked in Flipkart Software Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app