mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-07 09:58:03 +00:00
Added quick sort animation. Tweaked quick sort clarifying question.
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
"source": [
|
||||
"## Clarifying Questions\n",
|
||||
"\n",
|
||||
"* Are you looking for a naiive quicksort (ie not in-place)?\n",
|
||||
"* Is a naiive quicksort (ie not in-place) ok?\n",
|
||||
" * Yes"
|
||||
]
|
||||
},
|
||||
@@ -40,6 +40,9 @@
|
||||
"source": [
|
||||
"## Algorithm\n",
|
||||
"\n",
|
||||
"Wikipedia's animation:\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"* Set pivot to the middle element in the data\n",
|
||||
"* For each element:\n",
|
||||
" * If current element is the pivot, continue\n",
|
||||
|
||||
Reference in New Issue
Block a user