@rahulmawari/js-algorithms
v0.2.1
Published
A package that is trying to implement all programming algorithms so that anyone can use them just by installing package and callinga function
Downloads
3
Readme
js-algorithms
Don't need to write complex function anymore to do computation. js-algorithms is trying to imlement all possible complex algorthms in javascript.
How to use
npm install @rahulmawari/js-algorithms --save
const algorithms = require('@rahulmawari/js-algorithms')
String
countDuplicates
```
const result = algorithms.countDuplicates("efecferfhehf")
```
editDistance (Calculate edit distance of two string using wagner fischer algorithm)
```
const result = algorithms.editDistance('aassd','ssssd')
```
Memoizer(Use memoizer utility to cache result of a function)
const result = algorithms.memoizer(func);