4 ms·
> 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 earl
by wodenokoto 1y 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?
- thaumasiotes 1y agoIs reversing the file an improvement over making two passes?