The Weekly Challenge - 316

Monday, Apr 7, 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: Circular

10. TASK #2: Subsequence


HEADLINES


Welcome to the Week #316 of The Weekly Challenge.

Today is the first Monday of the month and it’s time to declare the next champion!

With great pride, I announce, Eric Cheung, as the Champion of the Month for March 2025. He was last declared champion in March 2022, exactly three years ago. Eric has been a guest contributor since day one. His favourite languages are Excel VBA and Python. As of today, he shared 63 solutions in Excel VBA and 325 solutions in Python. Currently he is ranked #12 on the Guest Leaders list with a total score of 388.

Eric, please share your PayPal details so that the prize money can be transferred easily.

I’ve noticed a dip in contributions in Perl and Raku but at the same time, there has been growth in others programming languages. If you look at the trend closely, you’ll notice we have a strong and dedicated groups of supporters who regularly share solutions.

One such contributor I’d like to highlight is BarrOff. As of today, he has shared 47 solutions in Perl and 157 solutions in Raku. For a while, he is only submitting solution to Task #1 in Raku. The reason, I’m mentioning him is because despite clearly being busy, he still makes the effort to find time for at least one task each week. That level of dedication deserves a big round of applause.

Interestingly, the timing of his contributions, usually late on Sunday evenings, makes me believe that he’s a busy techie juggling many things. Every time, I aceept and merge his submission, it brings a sense of joy and appreciation.

I would also like to thank, Kjetil Skotheim, for sharing solutions to the past challenges.

Do we have any frontend experts in the team?

Why am I asking?

Well, I am not sure if you’ve noticed, but the top menu bar on the weekly challenge website doesn’t work properly on mobile devices. I finally managed to implement a quick and dirty fix so I can at least navigate the site on my phone. However, it’s still far from perfect.

If you know what’s missing or have ideas for a better fix, please do share your expertise!

By the way, I’ve made few improvements to the Charts page. Please let me know what do you think. Any better?

Last but not least, thank you to the entire team for your continuous support and encouragement. Your dedication keeps this challenge going strong!



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

  Week      Perl       Raku       Blog   
   311       42       21       16   
   312       48       21       26   
   313       53       19       13   
   314       44       17       13   
   315       38       15       13   

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

  Week      Guests       Contributions       Languages   
   311       11       46       17   
   312       13       56       20   
   313       11       49       18   
   314       12       50       18   
   315       12       56       20   

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     (3297)
 2. Rust       (878)
 3. Ruby       (785)
 4. Haskell    (763)
 5. Lua        (702)
 6. C++        (603)
 7. C          (590)
 8. JavaScript (548)
 9. Go         (473)
10. BQN        (428)

Blogs with Creative Title


1. Finding a Third of the Words by Adam Russell.

2. The Find by Arne Sommer.

3. The Third Index by Jorg Sommrey.

4. Finding Things in Things by Matthias Muth.

5. Find answers by Peter Campbell Smith.

6. Find the Third Word by Roger Bell_West.


GitHub Repository Stats


1. Commits: 42,993 (+91)

2. Pull Requests: 11,818 (+36)

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 - 315 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


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 #315.

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


Task 1: Circular

Submitted by: Mohammad Sajid Anwar

You are given a list of words.

Write a script to find out whether the last character of each word is the first character of the following word.


Example 1

Input: @list = ("perl", "loves", "scala")
Output: true

Example 2

Input: @list = ("love", "the", "programming")
Output: false

Example 3

Input: @list = ("java", "awk", "kotlin", "node.js")
Output: true

Task 2: Subsequence

Submitted by: Mohammad Sajid Anwar

You are given two string.

Write a script to find out if one string is a subsequence of another.

A subsequence of a string is a new string that is formed from the original string
by deleting some (can be none)  of the characters without disturbing the relative
positions of the remaining characters.

Example 1

Input: $str1 = "uvw", $str2 = "bcudvew"
Output: true

Example 2

Input: $str1 = "aec", $str2 = "abcde"
Output: false

Example 3

Input: $str1 = "sip", $str2 = "javascript"
Output: true


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


SO WHAT DO YOU THINK ?

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

Contact with me