mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
484 B
11 lines
484 B
5 months ago
|
public class ExerciseRunner {
|
||
|
public static void main(String[] args) {
|
||
|
DistinctSubstringLength finder = new DistinctSubstringLength();
|
||
|
|
||
|
// Test cases
|
||
|
System.out.println(finder.maxLength("abcabcbb")); // Expected output: 3
|
||
|
System.out.println(finder.maxLength("bbbbb")); // Expected output: 1
|
||
|
System.out.println(finder.maxLength("pwwkew")); // Expected output: 3
|
||
|
System.out.println(finder.maxLength("")); // Expected output: 0
|
||
|
}
|
||
|
}
|