0.2.1 • Published 6 years ago

@rahulmawari/js-algorithms v0.2.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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);