Perl Christmas Quiz

Hakim Cassimally hakim.cassimally at gmail.com
Fri Dec 12 14:46:22 GMT 2008


On 12/12/2008, Peter Corlett <abuse at cabal.org.uk> wrote:
> On Fri, Dec 12, 2008 at 02:15:49PM +0000, Hakim Cassimally wrote:
>  > On 12/12/2008, Peter Corlett <abuse at cabal.org.uk> wrote:
>
> [...]
>
> >> sub intersect{my%x;$x{$_}++for(@{+shift});grep{$x{$_}&&$x{$_}--}@{+shift};}
>  > Gah of course: though you missed the min(n,m) requirement.
>
>
> Are you sure? Really sure?

Ah, the problem statement makes more sense rereading it... serve me
right for trying to rush it during lunch ;-)

osf'


More information about the london.pm mailing list