The Weekly Challenge - 319

Monday, Apr 28, 2025| Tags: Perl, Raku

TABLE OF CONTENTS


  1. HEADLINES

  2. SPONSOR

  3. RECAP

  4. PERL REVIEW

  5. RAKU REVIEW

  6. CHART

  7. NEW MEMBERS

  8. GUESTS

  9. TASK #1: Word Count

10. TASK #2: Minimum Common


HEADLINES


Welcome to the Week #319 of The Weekly Challenge.

Last week, I forgot to mention the new member, Steve Hart.

Welcome aboard, Steve Hart and thanks for your first contributions in Perl.

I am going to Leipzig, Germany this Wednesday April 30th, 2025 to be part of Perl Toolchain Summit 2025. I am flying back home on Monday May 1st 2025 morning. I will do my best not to disturb the scheduled weekly challenge.

Happy Hacking!!


Last 5 weeks mainstream contribution stats. Thank you Team PWC for your support and encouragements.

  Week      Perl       Raku       Blog   
   314       46       19       14   
   315       42       17       14   
   316       50       23       18   
   317       48       21       17   
   318       40       19       17   

Last 5 weeks guest contribution stats. Thank you each and every guest contributors for your time and efforts.

  Week      Guests       Contributions       Languages   
   314       12       50       18   
   315       12       56       20   
   316       11       52       19   
   317       10       50       17   
   318       10       48       16   

TOP 10 Guest Languages


Do you see your favourite language in the Top #10? If not then why not contribute regularly and make it to the top.

 1. Python     (3333)
 2. Rust       (894)
 3. Ruby       (791)
 4. Haskell    (769)
 5. Lua        (714)
 6. C++        (609)
 7. C          (590)
 8. JavaScript (554)
 9. Go         (479)
10. BQN        (432)

Blogs with Creative Title


1. Group Position Reversals by Adam Russell.

2. Reverse Postition by Arne Sommer.

3. Reverse Groups by Jorg Sommrey.

4. Short and to the point! by Luca Ferrari.

5. Find Twice and Reverse Once by Matthias Muth.

6. Group the Reverse Position by Packy Anderson.

7. Repeat and reverse by Peter Campbell Smith.

8. Reverse the Position to Equalise the Group by Roger Bell_West.

9. Reverse Positions by Simon Green.


GitHub Repository Stats


1. Commits: 43,269 (+86)

2. Pull Requests: 11,922 (+34)

3. Contributors: 258

4. Fork: 326

5. Stars: 189



With start of Week #268, we have a new sponsor Lance Wicks until the end of year 2025. Having said we are looking for more sponsors so that we can go back to weekly winner. If anyone interested please get in touch with us at perlweeklychallenge@yahoo.com. Thanks for your support in advance.


RECAP


Quick recap of The Weekly Challenge - 318 by Mohammad Sajid Anwar.


PERL REVIEW


If you missed any past reviews then please check out the collection.


RAKU REVIEW


If you missed any past reviews then please check out 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


Steve Hart, an expert Perl hacker joined the Team PWC.

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

Please try the excellent tool EZPWC created by respected member Saif Ahmed of Team PWC.


GUESTS


Please check out the guest contributions for the Week #318.

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


Task 1: Word Count

Submitted by: Mohammad Sajid Anwar

You are given a list of words containing alphabetic characters only.

Write a script to return the count of words either starting with a vowel or ending with a vowel.


Example 1

Input: @list = ("unicode", "xml", "raku", "perl")
Output: 2

The words are "unicode" and "raku".

Example 2

Input: @list = ("the", "weekly", "challenge")
Output: 2

Example 3

Input: @list = ("perl", "python", "postgres")
Output: 0

Task 2: Minimum Common

Submitted by: Mohammad Sajid Anwar

You are given two arrays of integers.

Write a script to return the minimum integer common to both arrays. If none found return -1.


Example 1

Input: @array_1 = (1, 2, 3, 4)
       @array_2 = (3, 4, 5, 6)
Output: 3

The common integer in both arrays: 3, 4
The minimum is 3.

Example 2

Input: @array_1 = (1, 2, 3)
       @array_2 = (2, 4)
Output: 2

Example 3

Input: @array_1 = (1, 2, 3, 4)
       @array_2 = (5, 6, 7, 8)
Output: -1


Last date to submit the solution 23:59 (UK Time) Sunday 4th May 2025.


SO WHAT DO YOU THINK ?

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

Contact with me