DEV Community

Discussion on: Sorting algorithms in Rust

Collapse
 
jhenninger profile image
Johannes Henninger

You don't need a third function for quicksort since you can just pass subslices to the functions. You were already doing that for mergesort. None of the quicksort functions need to take any parameters except a mutable slice.