# Solutions by Packy Anderson ## Perl * [Task 1](perl/ch-1.pl) Sample output ``` $ perl/ch-1.pl Example 1: Input: @ints = (0, 2, 9, 4, 6) Output: true Example 2: Input: @ints = (5, 1, 3, 2) Output: false Example 3: Input: @ints = (2, 2, 3) Output: true Example 4 from James Curtis-Smith: Input: @ints = (1, 2, 3, 4, 1, 2, 3) Output: false ``` * [Task 2](perl/ch-2.pl) Sample output ``` $ perl/ch-2.pl Example 1: Input: @ints = (1, 0, 2, 3, 0, 4, 5, 0) Output: (1, 0, 0, 2, 3, 0, 0, 4) Example 2: Input: @ints = (1, 2, 3) Output: (1, 2, 3) Example 3: Input: @ints = (0, 3, 0, 4, 5) Output: (0, 0, 3, 0, 0) ``` ## Raku * [Task 1](raku/ch-1.raku) Sample output ``` $ raku/ch-1.raku Example 1: Input: @ints = (0, 2, 9, 4, 6) Output: true Example 2: Input: @ints = (5, 1, 3, 2) Output: false Example 3: Input: @ints = (2, 2, 3) Output: true Example 4 from James Curtis-Smith: Input: @ints = (1, 2, 3, 4, 1, 2, 3) Output: false ``` * [Task 2](raku/ch-2.raku) Sample output ``` $ raku/ch-2.raku Example 1: Input: @ints = (1, 0, 2, 3, 0, 4, 5, 0) Output: (1, 0, 0, 2, 3, 0, 0, 4) Example 2: Input: @ints = (1, 2, 3) Output: (1, 2, 3) Example 3: Input: @ints = (0, 3, 0, 4, 5) Output: (0, 0, 3, 0, 0) ``` ## Guest Language: Python * [Task 1](python/ch-1.py) * [Task 2](python/ch-2.py) ## Guest Language: Java * [Task 1](java/Ch1.java) * [Task 2](java/Ch2.java) ## Blog Post [Perl Weekly Challenge: Remove and Duplicate, Challenge Edition](https://packy.dardan.com/2023/09/18/perl-weekly-challenge-remove-and-duplicate-challenge-edition/)