Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@rahulmawari/js-algorithms

sudoStatus2005MIT0.2.1

A package that is trying to implement all programming algorithms so that anyone can use them just by installing package and callinga function

algorithms, data, structure

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