✔️ Python's Simple and Easy to Understand Solution Using Sliding Window | 99% Faster 🔥
\uD83D\uDD3C IF YOU FIND THIS POST HELPFUL PLEASE UPVOTE \uD83D\uDC4D\n\n\nclass Solution:\n    def minWindow(self, s: str, t: str) -> str:\n        lookup = Co
**\uD83D\uDD3C IF YOU FIND THIS POST HELPFUL PLEASE UPVOTE \uD83D\uDC4D**\n\n```\nclass Solution:\n    def minWindow(self, s: str, t: str) -> str:\n        lookup = Counter(t)\n        mx = float("inf")\n        output = ""\n        S = len(s)\n        start, end = 0, 0\n        count = len(lookup)\n        \n        while end < S:\n            \n            # End Pointer\n            while end < S and count != 0:\n                if s[end] in lookup:\n                    lookup[s[end]] -= 1\n                    if lookup[s[end]] == 0:\n                        count -=1\n                end += 1\n                \n            # Start Pointer\n            while start <= end and count == 0:\n                \n                if end-start < mx:\n                    mx = end - start\n                    output = s[start:end]\n                \n                if s[start] in lookup:\n                    lookup[s[start]] += 1\n                    if lookup[s[start]] > 0:\n                        count += 1\n                \n                start += 1\n        \n        return output\n```\n**If you\'re interested in learning Python, check out my blog. https://www.python-techs.com/**\n\n**Thank you for reading! \uD83D\uDE04 Comment if you have any questions or feedback.**
['Sliding Window', 'Python', 'Python3']