We're sorry but rendepage doesn't work properly without JavaScript enabled. Please enable it to continue.
字符串出现的不重复最长长度
千锋教育
用一个滑动窗口装没有重复的字符,枚举字符记录最大值即可。用 map 维护字符的索引,遇到相同的字符,把左边界移动过去即可。挪动的过程中记录最大长度: