JSPM

js-algo-ds

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q33677F
  • License MIT

Data structure and algorithm problems in a library

Package Exports

  • js-algo-ds
  • js-algo-ds/js-algo-ds.cjs.js
  • js-algo-ds/js-algo-ds.esm.js
  • js-algo-ds/js-algo-ds.umd.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (js-algo-ds) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

JSAlgoDS

codecov License: MIT code style: 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

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.

  • yarn install: Installs dependencies
  • yarn build: Generates the minified build from the source code using Rollup
  • yarn dev: Generates the minified build from the source code using Rollup 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.

Code of Conduct

The Code of Conduct can be found here.

Inspired By / Reference