Counting exactly the number of distinct elements: sorted arrays vs. hash sets?lemire.me46 pointsdeafcalculus9 years ago