1.0.4 • Published 2 years ago

node-lcs v1.0.4

Weekly downloads
10
License
MIT
Repository
github
Last release
2 years ago

node-lcs

npm GitHub Workflows Coverage Status

Common dynamic programming implementations for the Longest Common Substring algorithm runs in O(nm) time. Reference implementation at WikiBooks

Installation

Add the latest version of node-lcs to your package.json:

npm install node-lcs

Usage

var lcs = require('node-lcs')

var result = lcs('Longest common substring', 'Compare with this common string')
console.log(result)
{ length: 9, sequence: ' common s', offset: 7 }
1.0.4

2 years ago

1.0.3

3 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago