cs

Crates.iocs
lib.rscs
version0.0.4
sourcesrc
created_at2020-11-01 17:19:43.935574
updated_at2020-11-01 17:46:34.497228
descriptionFind common substrings among multiple input strings
homepage
repositoryhttps://github.com/TianyiShi2001/cs
max_upload_size
id307592
size7,398
Tianyi Shi (TianyiShi2001)

documentation

README

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");
Commit count: 5

cargo fmt