https://docs.oracle.com/javase/tutorial/collections/interfaces/set.htmlQuote
A Set is a Collection that cannot contain duplicate elements. It models the mathematical set abstraction. The Set interface contains only methods inherited from Collection and adds the restriction that duplicate elements are prohibited. Set also adds a stronger contract on the behavior of the equals and hashCode operations, allowing Set instances to be compared meaningfully even if their implementation types differ. Two Set instances are equal if they contain the same elements.
Most languages have an ability to remove duplicates in an array or list, whatever, I don't know what you're working with but I assume it would similar.
In Python it would be as easy as referencing an object through
set().
Code
>>>
>>>
>>> data = (53711, 53711, 53711, 53705, 53705)
>>> data
(53711, 53711, 53711, 53705, 53705)
>>> set(data)
set([53705, 53711])
>>> unique_data = set(data)
>>> unique_data
set([53705, 53711])
>>> list(unique_data)
[53705, 53711]
>>>
Open the data -> Parse the Zip Codes -> Remove Duplicates -> Order them -> Display
This post was edited by j0ltk0la on Dec 7 2015 08:15pm