Try It Yourself: Solution

See the solution to the coding exercise you tried in the previous lesson.

We'll cover the following

Quicksort algorithm

Implement the Quicksort algorithm. It should work like this:

Quicksort.sort([34, 4, 521, 9])
#Output -> [4, 9, 34, 521])

Quicksort.sort([-4, 67, -22, 0, 8])
#Output -> [-22, -4, 0, 8, 67])

Get hands-on with 1200+ tech skills courses.