8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 459215b commit 116daaaCopy full SHA for 116daaa
src/main/java/com/fishercoder/solutions/_159.java
@@ -3,20 +3,6 @@
3
import java.util.HashMap;
4
import java.util.Map;
5
6
-/**
7
- * 159. Longest Substring with At Most Two Distinct Characters
8
- * Given a string s , find the length of the longest substring t that contains at most 2 distinct characters.
9
- *
10
- * Example 1:
11
- * Input: "eceba"
12
- * Output: 3
13
- * Explanation: t is "ece" which its length is 3.
14
15
- * Example 2:
16
- * Input: "ccaabbb"
17
- * Output: 5
18
- * Explanation: t is "aabbb" which its length is 5.
19
- */
20
public class _159 {
21
public static class Solution1 {
22
public int lengthOfLongestSubstringTwoDistinct(String s) {
0 commit comments