Hacker News new | ask | show | jobs
by wodenokoto 238 days ago
> It becomes complex if you're keeping the last duplicate, because every time you find a duplicate you have to go back through your "output" and delete the earlier occurrence.

Can't you reverse file | keep first occurrence | reverse output?

1 comments

Is reversing the file an improvement over making two passes?