Overview

I recently started reading through Grokking Algorithms as a primer before starting to review more DS&A, and chapter 4 is about quicksort, which recursively uses a divide-and-conquer method to sort an array in ascending order.

The pictures in the book (one linked below) are really great at describing the call stack, and it got me thinking about easy ways to accomplish viewing how deep the call stack goes recursively when calling these functions.

Basics

The idea around quicksort is that you pick a pivot and then split the arrays into smaller and larger numbers from there. Depending on where you pick your pivot, it has an effect on th…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help