@pencroff/ts-algorithms
v0.0.13
Published
Typescript algorithms and Data Structures
Downloads
17
Readme
ts-algorithms
Typescript algorithms and Data Structures
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
- Structures
- Search
- Sorting
- Hash functions
Theory
Big O notation is used in computer science to describe the performance or complexity of an algorithm.
source: www.bigocheatsheet.com
Big O can be used for measuring time complexity or space / memory complexity.
References: