longest-common-subsequence

Get the longest common subsequence of two strings as described in https://en.wikipedia.org/wiki/Longest_common_subsequence_problem

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
longest-common-subsequence
1.0.46 years ago7 years agoMinified + gzip package size for longest-common-subsequence in KB

Readme

# longest-common-subsequence Build Status
Get the longest common subsequence of two strings as described in Wikipedia

Install

``` $ npm install --save longest-common-subsequence ```

Usage

```js const lcs = require('longest-common-subsequence'); lcs('Abc def', 'abc'); //=> 'abc' lcs('abc def','Abc Def', true); // case sensitive = true //=> 'bc ef' ```

Testing

``` $ npm test ```

License

MIT © EL AZZABI Ahmed