Re:Finding unique items: hash vs. sort
by maury91 on Wednesday January 08, 2020 @09:19AM
(#21991633)
You could use a modified version of merge sort where if an element already exists you don't add it (you end up adding only unique elements), this will save the extra O(n) where you remove the duplicates.
[ Parent
| on HN ]
There are no comments on this comment yet.