[JOB] Perl Software Developer and Database programmer

Andy Armstrong andy at hexten.net
Wed Feb 22 17:44:46 GMT 2006


On 22 Feb 2006, at 17:20, Peter Hickman wrote:
> What about duplicate entries in, say, the alpha, list?

You step over them...

while (inputs not empty)
    while head of first list < head of second list
       pop head of first list
    while head of second list > head of first list
       pop head of second list
    if both lists non-empty
       push head of first list onto output list
       pop head of first list
       pop head of second list
       while head of first list = foot of output list
          pop head of first list
       while head of second list = foot of output list
          pop head of second list

-- 
Andy Armstrong, hexten.net



More information about the london.pm mailing list