0159. Longest Substring with At Most Two Distinct Characters
Description
**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.ac: sliding window
Previous0158. Read N Characters Given Read4 II - Call multiple timesNext0160. Intersection of Two Linked Lists
Last updated