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