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`.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton