Longest Substring with At Most Two Distinct Characters(map)
Given a strings, find the length of the longest substring _t _that containsat most2 distinct characters.
Example 1:
Example 2:
分析
用模板
Last updated
Was this helpful?
Given a strings, find the length of the longest substring _t _that containsat most2 distinct characters.
Example 1:
Example 2:
分析
用模板
Last updated
Was this helpful?