Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    my @items = sort grep $seen{$_}++ == 1, map @$_, values %sets;
    
    print "Items in more than one set: @items\n";
    
  2. or download this
    Items in more than one set: 1 3 4