Hacker News new | ask | show | jobs
by orlp 922 days ago
My algorithm pdqsort fixes this problem fundamentally which turns many identical values into an ideal O(n log k) case where k is the number of unique values, even if it were to use Lomuto.