fast-bubble-sort

1.0.2 • Public • Published

Bubble Sort Project

This project implements the classic bubble sort algorithm in JavaScript. Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order. The pass through the list is repeated until the list is sorted.

Example usage:

const array = [64, 34, 25, 12, 22, 11, 90];
const sortedArray = bubbleSort(array);
console.log(sortedArray);

Dependencies (8)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i fast-bubble-sort

    Weekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    1.92 kB

    Total Files

    3

    Last publish

    Collaborators

    • karry.eth