159. Longest Substring with At Most Two Distinct Characters
Given a string s , find the length of the longest substring t that contains at most 2 distinct characters.
Example 1:
Example 2:
Last updated
Was this helpful?
Given a string s , find the length of the longest substring t that contains at most 2 distinct characters.
Example 1:
Example 2:
Last updated
Was this helpful?