TianyiShi2001 / cs

Computing the Longest Common Substring

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cs

Computing the (Longest) Common Substring

Example

use cs::longest_common_substring
let lcs = longest_common_substring(&[
    "ZYABCAGB",
    "BCAGDTZYY",
    "DACAGZZYSC",
    "CAGYZYSAU",
    "CAZYUCAGF",
]);
assert_eq!(lcs, "CAG");

About

Computing the Longest Common Substring

License:MIT License


Languages

Language:Rust 100.0%