longest-common-subequence
v0.1.0
Published
Get the longest common subsequence of two strings as described in https://en.wikipedia.org/wiki/Longest_common_subsequence_problem
Downloads
4
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