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

File quick-sort.js

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

Source from the content-addressed store, hash-verified

1// time O(n^2) worst case
2// time O(n log n) best and Avg case
3// space O(log n) because we need to use recursion and if we apply quick sort first on the smaller array that
4// way we know that at most we will store log n calls on the call stack

Callers

nothing calls this directly

Calls 1

quickSortFunction · 0.85

Tested by

no test coverage detected