LC: 159. Longest Substring with At Most Two Distinct Characters
https://leetcode.com/problems/longest-substring-with-at-most-two-distinct-characters/
Input: s = "eceba"
Output: 3
Explanation: The substring is "ece" which its length is 3.Input: s = "ccaabbb"
Output: 5
Explanation: The substring is "aabbb" which its length is 5.PreviousLC: 340. Longest Substring with At Most K Distinct CharactersNextLC: 487. Max Consecutive Ones II
Last updated