The Weekly Challenge - 245

Monday, Nov 27, 2023| Tags: Perl, Raku










09. TASK #1: Sort Language

10. TASK #2: Largest of Three


Welcome to the Week #245 of The Weekly Challenge.

I am sure you all have noticed the popularity of Python among the team members. It is the top most loved programming language after Perl and Raku. Today we crossed 2000 mark i.e. we have received over 2000 contributions in Python. Thanks to all contributors.

We have a new member, Oliver Oviedo, joining the Team PWC. Welcome on board, Oliver, we are looking forward to your creative contributions.

Our latest champion, Pack Anderson, shared very special blog post. In the post, he shared his idea similar to EZPWC by fellow team member Saif Ahmed. Please do share your views with us.

We are almost there to welcome new Advent Calendar 2023. If you want to be part of it then please do share your blog post with us.

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

  Week      Perl       Raku       Blog   
   240       62       36       26   
   241       59       31       25   
   242       57       37       32   
   243       63       34       28   
   244       55       36       29   

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

  Week      Guests       Contributions       Languages   
   240       18       89       26   
   241       14       68       21   
   242       13       57       20   
   243       18       85       24   
   244       14       56       17   

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     (2001)
 2. Ruby       (625)
 3. Haskell    (610)
 4. Lua        (550)
 5. Rust       (469)
 6. C          (463)
 7. C++        (444)
 8. BQN        (315)
 9. Go         (301)
10. JavaScript (295)

Blogs with Creative Title

1. Counting the Smallest Embiggens the Group Hero by Adam Russell.

2. The Smaller Hero by Arne Sommer.

3. Let me count the ways by Bob Lied.

4. We Can Be Heroes, Just For One Day by Dave Jacoby.

5. And then a hero comes along by Ian Rifkin.

6. Smaller Heroes by Jorg Sommrey.

7. grep and filter everywhere! by Luca Ferrari.

8. Count… just a little bit smaller… by Packy Anderson.

9. The smallest hero by Peter Campbell Smith.

10. Counting Your Heroes by Roger Bell_West.

GitHub Repository Stats

1. Commits: 35,366 (+259)

2. Pull Requests: 9,132 (+95)

3. Contributors: 239 (+1)

4. Fork: 301

5. Stars: 163

Our solo sponsor Pete Sergeant has been a great support to keep us motivated. We are lucky that he agreed to continue the journey with us in the year 2023. I would like to personally thank Pete and his entire team for their generosity. It would be great if we could add few more to sponsor the prize money so that we could go back and declare weekly champions as we have done in the past. I hope and wish this will become possible in 2023. The amount doesn’t have to be huge. However, it would be nice to show off bunch of supporters. If an organisation comes forward and supports us then that would be the ultimate achievement.


Quick recap of The Weekly Challenge - 244 by Mohammad S Anwar.


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


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


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.


Oliver Oviedo, an expert Perl hacker from Switzerland 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.


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

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

Task 1: Sort Language

Submitted by: Mohammad S Anwar

You are given two array of languages and its popularity.

Write a script to sort the language based on popularity.

Example 1

Input: @lang = ('perl', 'c', 'python')
       @popularity = (2, 1, 3)
Output: ('c', 'perl', 'python')

Example 2

Input: @lang = ('c++', 'haskell', 'java')
       @popularity = (1, 3, 2)
Output: ('c++', 'java', 'haskell')

Task 2: Largest of Three

Submitted by: Mohammad S Anwar

You are given an array of integers >= 0.

Write a script to return the largest number formed by concatenating some of the given integers in any order which is also multiple of 3. Return -1 if none found.

Example 1

Input: @ints = (8, 1, 9)
Output: 981

981 % 3 == 0

Example 2

Input: @ints = (8, 6, 7, 1, 0)
Output: 8760

Example 3

Input: @ints = (1)
Output: -1

Last date to submit the solution 23:59 (UK Time) Sunday 3rd December 2023.


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

Contact with me