@codinasion/counting-sort
v1.0.2
Published
Typescript implementation of counting sort
Downloads
3
Maintainers
Readme
@codinasion/counting-sort
TypeScript implementation of the Counting Sort algorithm.
Installation
# if you're using pnpm
pnpm add @codinasion/counting-sort
# or, if you're using npm
npm install @codinasion/counting-sort
# or, if you're using yarn
yarn add @codinasion/counting-sort
Usage
import { CountingSort } from "@codinasion/counting-sort";
const arr = [1, 4, 7, 2, 5, 8, 3, 6, 9];
const sortedArr = CountingSort(arr);
console.log(sortedArr); // [1, 2, 3, 4, 5, 6, 7, 8, 9]