Minimum Window in S which Contains All Elements from T
Given a set T of characters and a string S, find the minimum window in S which will contain all the characters in T in complexity O(n).
eg,
S = “ADOBECODEBANC”
T = “ABC”
Minimum window is “BANC”.
http://www.leetcode.com/2010/11/finding-minimum-window-in-s-which.html
ReplyDeletehttp://tech-queries.blogspot.in/2010/12/finding-minimum-window-in-array-which.html
http://www.geeksforgeeks.org/archives/11307