More Sorting Flashcards
(1 cards)
1
Q
What is quicksort space complexity and why?
A
O(logn). Because while it’s in place, it still calls itself recursively which uses O(logn) space on the stack
What is quicksort space complexity and why?
O(logn). Because while it’s in place, it still calls itself recursively which uses O(logn) space on the stack
-TierI Interview Prep (31 decks)