Perl Weekly Challenge - 051

Monday, Mar 9, 2020| Tags: Perl, Raku


HEADLINES



We are close to completing one year of weekly challenge. I am sure you would all agree, in this journey we have come across many experts in Perl and Raku. If you know of any Perl/Raku opportunities at your work place then please let us know about it. Similary if any member looking for any opportunities can reach out to us. We would then pass the contact details for you to take it further.

Few days ago, our current Perl and Raku reviewer, Ryan Thompson, contacted us and informed that this week review is going to be delayed because of Family Emergency. We pray and wish that things get better soon and we have our Ryan back.

Last but not the least, I woud like to thank each and every member for their support and encouragement.



RECAP



Quick recap of the “Perl Weekly Challenge - 050” by Mohammad S Anwar.



PERL REVIEW



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



RAKU REVIEW



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



Ben Davies, an experienced Raku hacker from Canada, contributed Raku solutions.

Sitaram Chamarty, an experienced Perl hacker, contributed Perl solution.


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

Please give it a try to an excellent tool EZPWC created by respected member Saif Ahmed of Team PWC.



GUESTS



Orestis Zekai shared solutions to Task #1 and Task #2 in Python.

Ulrich Rieke shared solution to Task #2 in C++.

User Person shared solutions to Task #1 and Task #2 in Python.

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



TASK #1



3 Sum


Given an array @Lof integers. Write a script to find all unique triplets such that a + b + c is same as the given target T. Also make sure a <= b <= c.

Here is wiki page for more information.

Example:

@L = (-25, -10, -7, -3, 2, 4, 8, 10);

One such triplet for target 0 i.e. -10 + 2 + 8 = 0.



TASK #2



Colourful Number


Write a script to display all Colorful Number with 3 digits.

A number can be declare Colorful Number where all the products of consecutive subsets of digit are different.

For example, 263 is a Colorful Number since 2, 6, 3, 2x6, 6x3, 2x6x3 are unique.



Last date to submit the solution 23:59 (UK Time) Sunday 15th March 2020.



SO WHAT DO YOU THINK ?

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

Contact with me