# JSAlgoDS
[![codecov](https://codecov.io/gh/Tanvir-rahman/js-algo-ds/branch/main/graph/badge.svg)](https://codecov.io/gh/Tanvir-rahman/js-algo-ds)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
JavaScript implementations of Data Structure, Algorithms and Programming Problems from various sites.
Sites like LeetCode, HackerRank, CodeChef, SPOJ, Codewars etc.
This project will help users to reuse concepts from these sites.
## Algorithms
### LeetCode
#### Easy
- [Two Sum](src/twoSum/index.js)
## Using the npm Package in Your App
To use these data structures and algorithms in your own app, follow these steps:
1. Install the npm package using `yarn add js-algo-ds`
   (or `npm install js-algo-ds`)
2. Import any of the exported modules like `import { twoSum } from 'js-algo-ds'` and use.
## Yarn Commands
For a complete list, see [package.json](package.json).
- `yarn install`: Installs dependencies
- `yarn build`: Generates the minified build from the source code using [Rollup](https://rollupjs.org/)
- `yarn dev`: Generates the minified build from the source code using [Rollup](https://rollupjs.org/) with watcher
- `yarn lint`: Runs eslint to lint JS files
- `yarn test`: Runs all tests
- `yarn test:watch`: Runs tests in watch mode
- `yarn test:coverage`: Runs all tests and includes coverage report
## Contributing
Please see the [Contributing Guidelines](CONTRIBUTING.md).
## Code of Conduct
The [Code of Conduct](CODE_OF_CONDUCT.md) can be found here.
## Inspired By / Reference
- [thawkin3](https://github.com/thawkin3/js-data-structures-and-algorithms)
- Contributors from [leetcode](https://leetcode.com/)