@anastasia-a-zhivaeva/grokking-algorithms
v2.1.9
Published
Algorithms and tasks from the book Grokking Algorithms A. Y. Bhargava
Downloads
17
Readme
Algorithms and tasks from the book Grokking Algorithms A. Y. Bhargava
| Statements | Branches | Functions | Lines | | --------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -------------------------------------------------------------------------- | ---------------------------------------------------------------------- | | | | | |
This repository contains
- Several algorithms described in the book Grokking Algorithms A. Y. Bhargava
- Tests of this algorithms using Jest
- CircleCI config for linting, testing and publishing to npm
Install package
npm i @anastasia-a-zhivaeva/grokking-algorithms
Use package
import { binarySearch, selectionSort } from '@anastasia-a-zhivaeva/grokking-algorigthms';
binarySearch([1, 2, 3], 3);
selectionSort([1, 2, 3]);
Commands
- start: build application for local development
- build: build app with webpack
- prepublishOnly: build app with webpack and generate types
- postversion: push code after publishing
- lint: lint with eslint
- test: test with jest
- coverage: add coverage badges to README