AI Dynamics

Global AI News Aggregator

About

Quicksort Algorithm Explained: Recursive List Sorting Pattern

sorry cant resist eg this just means
if you receive an empty list return an empty list (that ends the recursive stuff) otherwise
take a list take one element (p) keep the rest (xs)
recursive all the stuff that's smaller than p concat with p concat with all thats larger than p

→ View original post on X — @andreasklinger