LeetCode

Longest Substring with At Most Two Distinct Characters

Click here for an explanation.