Perl Weekly Challenge - 040

Monday, Dec 23, 2019| Tags: Perl, Raku


HEADLINES



With great pleasure, we announce Colin Crain** as the winner of “Perl Weekly Challenge - 039”**. Congratulations Colin, you should soon hear from Perl Careers about your reward. For rest of the participants, I would say Good Luck for next time. Keep sending in your solutions and share your knowledge with each other.



RECAP



Here is the recap of last week “Perl Weekly Challenge - 039”.



PERL REVIEW



Please checkout Perl** solutions review of the “Perl Weekly Challenge - 038”** by Kian-Meng Ang.

If you missed any past reviews then please checkout the collection.



RAKU REVIEW



Please checkout Raku** solutions review of the “Perl Weekly Challenge - 038”** by Laurent Rosenfeld.

Laurent** also reviewed “Perl Weekly Challenge - 037”**.

If you missed any past reviews then please checkout the collection.



CHART



Please take a look at the charts showing interesting data.

I would like to thank every member of the team for their valuable suggestions. Please do share your experience with us.



NEW MEMBERS



Check out current team members.

Please find out How to contribute?, if you have any doubts.



GUESTS



Please find out past solutions by respected guests. Please do share your creative solutions in other languages.



TASK #1



Show multiple arrays content

You are given two or more arrays. Write a script to display values of each list at a given index.

For example:

Array 1: [ I L O V E Y O U ]

Array 2: [ 2 4 0 3 2 0 1 9 ]

Array 3: [ ! ? £ $ % ^ & * ]

We expect the following output:

I 2 !
L 4 ?
O 0 £
V 3 $
E 2 %
Y 0 ^
O 1 &
U 9 *


TASK #2



Sort SubList

You are given a list of numbers and set of indices belong to the list. Write a script to sort the values belongs to the indices.

For example,

List: [ 10, 4, 1, 8, 12, 3 ]

Indices: 0,2,5

We would sort the values at indices 0, 2 and 5 i.e. 10, 1 and 3.

Final List would look like below:

List: [ 1, 4, 3, 8, 12, 10 ]



Last date to submit the solution 23:59 (UK Time) Sunday 29th December 2019.



SO WHAT DO YOU THINK ?

If you have any suggestions or ideas then please do share with us.

Contact with me