Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!uakari.primate.wisc.edu!uflorida!beach.cis.ufl.edu!sml From: sml@beach.cis.ufl.edu (Shein-Fong Law) Newsgroups: comp.lang.c Subject: Program to eliminate duplicates in a set wanted Message-ID: <22891@uflorida.cis.ufl.EDU> Date: 14 Apr 90 20:58:11 GMT References: <1990Apr10.211659.21257@cunixf.cc.columbia.edu> Sender: news@uflorida.cis.ufl.EDU Reply-To: sml@beach.cis.ufl.edu () Organization: UF CIS Department Lines: 5 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.