Program to eliminate duplicates in a set wanted

Shein-Fong Law sml at beach.cis.ufl.edu
Sun Apr 15 06:58:11 AEST 1990


    Has anyone written a routine that will eliminate duplicates in a set?
For example, if input is {1,4,5,6,1,5,100}, then output will be
{1,4,5,6,100}. I know Lisp or Prolog can do the job easily. But having some
difficulty with C. Thanks in advance.



More information about the Comp.lang.c mailing list