# Solutions by Packy Anderson ## Perl * [Task 1](perl/ch-1.pl) Sample output ``` $ perl/ch-1.pl Example 1: Input: @int = (1, 2, 3, 4, 5) Output: (1, 3, 6, 10, 15) Example 2: Input: @int = (1, 1, 1, 1, 1) Output: (1, 2, 3, 4, 5) Example 3: Input: @int = (0, -1, 1, 2) Output: (0, -1, 0, 2) ``` * [Task 2](perl/ch-2.pl) Sample output ``` $ perl/ch-2.pl Example 1: Input: @int = (15, 99, 1, 34) Output: (1, 15, 34, 99) 15 => 1 x 5 => 5 (1 step) 99 => 9 x 9 => 81 => 8 x 1 => 8 (2 steps) 1 (0 steps) 34 => 3 x 4 => 12 => 1 x 2 => 2 (2 steps) Example 2: Input: @int = (50, 25, 33, 22) Output: (22, 33, 50, 25) 50 => 5 x 0 => 0 (1 step) 25 => 2 x 5 => 10 => 1 x 0 => 0 (2 steps) 33 => 3 x 3 => 9 (1 step) 22 => 2 x 2 => 4 (1 step) ``` ## Raku * [Task 1](raku/ch-1.raku) Sample output ``` $ raku/ch-1.raku Example 1: Input: @int = (1, 2, 3, 4, 5) Output: (1, 3, 6, 10, 15) Example 2: Input: @int = (1, 1, 1, 1, 1) Output: (1, 2, 3, 4, 5) Example 3: Input: @int = (0, -1, 1, 2) Output: (0, -1, 0, 2) ``` * [Task 2](raku/ch-2.raku) Sample output ``` ``` ## Guest Language: Python * [Task 1](python/ch-1.py) * [Task 2](python/ch-2.py) ## Guest Language: Java To be completed later... ## Blog Post [Perl Weekly Challenge: Be Runnin' Up That Sum, Be Persisten' Up That Sort](https://packy.dardan.com/2023/10/09/be-runnin-up-that-sum-be-persisten-up-that-sort/)