Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
               - ($x * $y * $z);
    
    my @only_two = $answer->elements();
    
  2. or download this
    {
       1 => [ 0, 1, 2 ],
    ...
      12 => [ 0, 1, 2 ],
      13 => [ 0, 1, 2 ],
    }
    
  3. or download this
    use List::Compare;
    sub elements_found_in_exactly_n_lists {
    ...
    my @only_two = elements_found_in_exactly_n_lists(
      2, \@array1, \@array2, \@array3,
    );