Sliding Window
好题:
模板
for (int end = 0; end < s.length(); end++) {
//proceed s.charAt(end)
while window is still valid {
//update res
//move begin pointer
}
}找最小window: while window is still valid
找最大window: while window is still invalid
为什么不用begin作iterator?
Minimum Window Substring
Find All Anagrams in a string
Longest substring without repeating characters
Last updated