Skip to content
Typescript algorithms and Data Structures
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
docs [other] change lib for file copy Jan 14, 2020
helper [heap] implementation Jan 2, 2020
src
.codecov.yml Project setup Nov 30, 2019
.gitignore Add .gitignore Nov 30, 2019
.travis.yml Project setup Nov 30, 2019
CNAME Update #2 (badge and cname) Nov 30, 2019
LICENSE Initial commit Nov 30, 2019
README.md [hash] fix links Jan 5, 2020
jest.config.js Project setup Nov 30, 2019
package-lock.json
package.json
tsconfig.json [ga] add GA id Jan 5, 2020

README.md

ts-algorithms

Typescript algorithms and Data Structures

Build Status codecov

Get started

npm i @pencroff/ts-algorithms --save

The package doesn't provide any common exports. All required imports should be per item. For example:

import { genericComparator } from '@pencroff/ts-algorithms/dist/primitive/comparator'

const res = genericComparator('A', 'B'); // returns -1, check primitives for details

Algorithms

Theory

Big O notation is used in computer science to describe the performance or complexity of an algorithm.

Big O chart source: www.bigocheatsheet.com

Big O can be used for measuring time complexity or space / memory complexity.

References:

You can’t perform that action at this time.