Skip to content

Commit 569d288

Browse files
committed
Added test
1 parent 7d5ff3f commit 569d288

File tree

1 file changed

+7
-0
lines changed
  • src/test/java/g3401_3500/s3485_longest_common_prefix_of_k_strings_after_removal

1 file changed

+7
-0
lines changed

src/test/java/g3401_3500/s3485_longest_common_prefix_of_k_strings_after_removal/SolutionTest.java

+7
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,11 @@ void longestCommonPrefix2() {
2020
new Solution().longestCommonPrefix(new String[] {"dog", "racer", "car"}, 2),
2121
equalTo(new int[] {0, 0, 0}));
2222
}
23+
24+
@Test
25+
void longestCommonPrefix3() {
26+
assertThat(
27+
new Solution().longestCommonPrefix(new String[] {"cdbff"}, 1),
28+
equalTo(new int[] {0}));
29+
}
2330
}

0 commit comments

Comments
 (0)