JSAlgoDS
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
Using the npm Package in Your App
To use these data structures and algorithms in your own app, follow these steps:
- Install the npm package using
yarn add js-algo-ds
(ornpm install js-algo-ds
) - Import any of the exported modules like
import { twoSum } from 'js-algo-ds'
and use.
Yarn Commands
For a complete list, see package.json.
yarn install
: Installs dependenciesyarn build
: Generates the minified build from the source code using Rollupyarn dev
: Generates the minified build from the source code using Rollup with watcheryarn lint
: Runs eslint to lint JS filesyarn test
: Runs all testsyarn test:watch
: Runs tests in watch modeyarn test:coverage
: Runs all tests and includes coverage report
Contributing
Please see the Contributing Guidelines.
Code of Conduct
The Code of Conduct can be found here.