重點整理

固定窗戶大小

不固定窗戶大小

一些通則

start = 0

for end in range(len(array)):
		
		# check if window is valid, if not, shrink it untile it is valid
		while is_valid():
				start += 1
		
		# do something the problem asked
		some_max_value = max(end - start + 1, some_max_value)

return something

3. Longest Substring Without Repeating Characters

424. Longest Repeating Character Replacement

Examples