@anastasia-a-zhivaeva/grokking-algorithms

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

Usage no npm install needed!

<script type="module">
  import anastasiaAZhivaevaGrokkingAlgorithms from 'https://cdn.skypack.dev/@anastasia-a-zhivaeva/grokking-algorithms';
</script>

README

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