Re: Find List elements



Richard Harter wrote:
> On Fri, 27 May 2005 18:57:35 +0200, "Martijn Mulder" <i@m> wrote:
>
.... snip ...
>
> Perhaps the original poster can clarify his intention; however the
> stated requirement (which you quoted in the beginning of your post)
> was to find whether there is any element in the second list that is
> the same as an element in the first, i.e., are the two sets disjoint.
>
> What you quoted within <quote>...</quote> was his proposed
> implementation.
>
>> so it doesn't matter if they get removed from the first list, from
>> the second list or from a combination of both lists, as long as
>> they get removed.
>>
>>> Anyway, a hash table is the canonical answer, I think. Some
>>> languages that have it built in call it a mapping or something
>>> similar.
>
> At least it is the obvious answer.

No, the obvious answer is to use Pascal:

IF (set1 * set2) = [] THEN writeln('No common members');

--
Some informative links:
news:news.announce.newusers
http://www.geocities.com/nnqweb/
http://www.catb.org/~esr/faqs/smart-questions.html
http://www.caliburn.nl/topposting.html
http://www.netmeister.org/news/learn2quote.html

.



Relevant Pages

  • Re: Microsoft Forms 2.0 ScrollBar
    ... my sincere apologies to the original poster. ... This is not my intention at ... sometime seem a bit strange. ... Edmonton, Alberta Canada ...
    (microsoft.public.access.forms)
  • Re: Pop tunes worthy of jazzers
    ... Let me clarify my subject intention. ... So, technically, jazz is pop. ... blues/etc) which has been released in our adult lifetimes (say, ...
    (rec.music.makers.guitar.jazz)
  • Re: Private pilot license
    ... fine-tuning our comments, yet the original poster hasn't come back even ... once to clarify his request, ask for further information or otherwise ...
    (rec.aviation.piloting)
  • Re: Macleod and the Destruction of Israel
    ... Al Isinwundalan says... ... I was the original poster. ... If you are referring to me let me state I had ... no intention of being a weaselly punditor an honorary troll. ...
    (rec.arts.sf.written)
  • Re: How to find total MB of a directory plus all subdirectories
    ... Very clever, but a bit of a mouthful;) ... Just to clarify things for the original poster, ...
    (Fedora)