@rahulmawari/js-algorithms

0.2.1 • Public • Published

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

Package Sidebar

Install

npm i @rahulmawari/js-algorithms

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

6.76 kB

Total Files

11

Last publish

Collaborators

  • rahulmawari