Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tianyishi2001/cs
Computing the Longest Common Substring
https://github.com/tianyishi2001/cs
Last synced: about 1 month ago
JSON representation
Computing the Longest Common Substring
- Host: GitHub
- URL: https://github.com/tianyishi2001/cs
- Owner: TianyiShi2001
- License: mit
- Created: 2020-11-01T16:53:20.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-01T17:46:28.000Z (about 4 years ago)
- Last Synced: 2024-09-14T06:56:06.376Z (2 months ago)
- Language: Rust
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cs
Computing the (Longest) Common Substring
## Example
```rust
use cs::longest_common_substring
let lcs = longest_common_substring(&[
"ZYABCAGB",
"BCAGDTZYY",
"DACAGZZYSC",
"CAGYZYSAU",
"CAZYUCAGF",
]);
assert_eq!(lcs, "CAG");
```