Minimum Window Substring
Problem
Input: s = "ADOBECODEBANC", t = "ABC" Output: "BANC" Explanation: The minimum window substring "BANC" includes 'A', 'B', and 'C' from string t.Input: s = "a", t = "a" Output: "a" Explanation: The entire string s is the minimum window.Input: s = "a", t = "aa" Output: "" Explanation: Both 'a's from t must be included in the window. Since the largest window of s only has one 'a', return empty string.
Pseudocode
Solution
Time and Space Complexity
Time
Space
Last updated