抽象思想:总遍历:2n 抽象思想:int left = 0, right = 0;while (right < s.size()) { window.add(s[right]); right++; while (valid) { window.remove(s[left]); left++; }}