longest-common-subsequence

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

Usage no npm install needed!

<script type="module">
  import longestCommonSubsequence from 'https://cdn.skypack.dev/longest-common-subsequence';
</script>

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

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