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