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