cs
Computing the (Longest) Common Substring
Example
use longest_common_substring
let lcs = longest_common_substring;
assert_eq!;
Computing the (Longest) Common Substring
use cs::longest_common_substring
let lcs = longest_common_substring(&[
"ZYABCAGB",
"BCAGDTZYY",
"DACAGZZYSC",
"CAGYZYSAU",
"CAZYUCAGF",
]);
assert_eq!(lcs, "CAG");