npm.io
2.1.9 • Published 5 years ago

@anastasia-a-zhivaeva/grokking-algorithms

Licence
MIT
Version
2.1.9
Deps
0
Size
14 kB
Vulns
0
Weekly
0

Algorithms and tasks from the book Grokking Algorithms A. Y. Bhargava

Statements Branches Functions Lines
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