Skip to content

Commit 116daaa

Browse files
refactor 159
1 parent 459215b commit 116daaa

File tree

1 file changed

+0
-14
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-14
lines changed

src/main/java/com/fishercoder/solutions/_159.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,6 @@
33
import java.util.HashMap;
44
import java.util.Map;
55

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-
*/
206
public class _159 {
217
public static class Solution1 {
228
public int lengthOfLongestSubstringTwoDistinct(String s) {

0 commit comments

Comments
 (0)