Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        print join "-", grep {$prev != $_ and $prev = $_} sort {$a <=> $b}
    + split /-/, $_;
        print "\n";
    }
    
  2. or download this
    12
    12
    12-13
    12-13
    12-13-14