Can the String T have repeating characters - for instance "AA"? In that case should the minimum window contain two A's or does it suffice for it have a single A.
Yes, T could have repeating chars. And minimum window should contain all of them. Here is an example test case from OJ:
Input: "aa", "aa"