Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dinhoabreu/node-lcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 }

About

Implementations for the Longest Common Substring algorithm [O(nm) time]

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors