in reply to Algorithm for cancelling common factors between two lists of multiplicands
If the arrays don't contain duplicate elements:
$c{$_}++ foreach @a; $c{$_}++ foreach @b; @c = grep { $c{$_} != 2 } @a; @d = grep { $c{$_} != 2 } @b;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Algorithm for cancelling common factors between two lists of multiplicands
by ikegami (Patriarch) on Aug 08, 2005 at 19:49 UTC | |
Re^2: Algorithm for cancelling common factors between two lists of multiplicands
by BrowserUk (Patriarch) on Aug 08, 2005 at 19:50 UTC | |
by ikegami (Patriarch) on Aug 08, 2005 at 19:55 UTC | |
by xdg (Monsignor) on Aug 08, 2005 at 20:05 UTC |
In Section
Seekers of Perl Wisdom