原文:[LeetCode] 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 two distinct characters.For example,Given S eceba ,T is ece which its length is . 給一個字符串,找出最多有兩個不同字符的最長子串。還是滑動窗口法,定義一 ...

2018-03-08 07:41 0 1221 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM