js-longest-increasing-subsequence
v1.1.2
Published
Longest Increasing Subsequence algorithm implementation in vanilla JavaScript
Downloads
2
Readme
Longest increasing subsequence algorithm
implementated in vanilla JavaScript
problem
https://en.wikipedia.org/wiki/Longest_increasing_subsequence
install
$ npm install js-longest-increasing-subsequence
usage
const longestIncreasingSubsequence = require('js-longest-increasing-subsequence')
longestIncreasingSubsequence([1,3,2,5,7])
or using simple cli
$ npm run cli
example
$ node example.js
tests
mocha test runner and chai assertion lib
$ npm test
assert from node.js standard lib
$ npm run test:assert
JS style
JavaScript Standard Style Guide
License
MIT