Skip to content
Discussion options

You must be logged in to vote

A miracle has occurred! This is indeed quicksort.

The non-empty list is partitioned around a pivot element (we just pick the head of the list) into elements <= the pivot or > the pivot. Then, we recurse to sort those bits.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@wence-
Comment options

Answer selected by wence-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant