Comment Comment by hither_shores The linked c code sample sorts the array, then accumulates the unique elements in a single pass. The python code sample makes a separate pass over `unique` for every element of `items`. parent hither_shores 4 years ago