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

File sort-stack.js

stacks/sort-stack.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// O(n^2) time | O(n) space - where n is the length of the stack
2// solution using recursion
3
4function sortStack(stack) {

Callers

nothing calls this directly

Calls 1

sortStackFunction · 0.85

Tested by

no test coverage detected