MCPcopy Create free account
hub / github.com/betomoedano/JavaScript-Coding-Interview-Questions / bubble-sort.js

File bubble-sort.js

sorting/bubble-sort.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1//
2// This is a little more optimized, it is likely to be faster in practice because
3// it short-circuits the inner loop and breaks out of the outer loop early
4// when the array is already sorted.

Callers

nothing calls this directly

Calls 1

bubbleSortFunction · 0.85

Tested by

no test coverage detected