JSFiddle - React, Tailwind, and code Playground
by Fabio Dan
JavaScript
function bubbleSort(items) {
var swap = false
do {
console.log(items)
swap = true
} while (swap)
}
bubbleSort([5,4,3,2,1])
by Fabio Dan
function bubbleSort(items) {
var swap = false
do {
console.log(items)
swap = true
} while (swap)
}
bubbleSort([5,4,3,2,1])