longest-common-subsequence
v1.0.4
Published
Get the longest common subsequence of two strings as described in https://en.wikipedia.org/wiki/Longest_common_subsequence_problem
Downloads
2,580
Readme
longest-common-subsequence
Get the longest common subsequence of two strings as described in Wikipedia
Install
$ npm install --save longest-common-subsequence
Usage
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