in reply to redundancy Checker
One way that comes to mind is to use a sorted list of the data. When you get a new element, find its place in the list. If it's already there, then you don't need to add it. If it's not there, then add it in the proper place.
HTH.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: redundancy Checker
by Tanktalus (Canon) on Jul 27, 2005 at 03:14 UTC |