in reply to How to avoid printing duplicates
You present this over-simplified problem, How do I keep from printing duplicates?, but you say nothing about where the data is coming from.
The best solution is to avoid generating duplicates, if you can.
As Occam said: Entia non sunt multiplicanda praeter necessitatem.
|
|---|