The Weekly Challenge - 313

Monday, Mar 17, 2025| Tags: Perl, Raku

TABLE OF CONTENTS


01. HEADLINES

02. SPONSOR

03. RECAP

04. PERL REVIEW

05. RAKU REVIEW

06. CHART

07. NEW MEMBERS

08. GUESTS

09. TASK #1: Broken Keys

10. TASK #2: Reverse Letters


HEADLINES


Welcome to the Week #313 of The Weekly Challenge.

Thank you, Kaushik, for back to back contributions in Perl and blog post.

I don’t know if noticed this, there is a drop in Raku contributions.

We have some rock solid Raku supporters in the team. I am sure they can bring in more Raku hackers.

I am still waiting for the 100+ contributions week of the year 2025. The closest we reached so far, was in the Week #309 and the number was 90.

Guest contributions have been on the rise all the time, never a dip in that front.

Keep the energy up and stay safe.



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

  Week      Perl       Raku       Blog   
   308       44       22       16   
   309       50       21       19   
   310       44       19       13   
   311       40       21       16   
   312       42       21       26   

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

  Week      Guests       Contributions       Languages   
   308       14       56       21   
   309       13       56       21   
   310       11       44       16   
   311       11       46       17   
   312       13       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     (3255)
 2. Rust       (864)
 3. Ruby       (779)
 4. Haskell    (757)
 5. Lua        (696)
 6. C++        (597)
 7. C          (590)
 8. JavaScript (542)
 9. Go         (466)
10. BQN        (422)

Blogs with Creative Title


1. Minimum Time in the Box by Adam Russell.

2. Canonical Stairs by Arne Sommer.

3. Timeboxing by Jorg Sommrey.

4. Discs and Spheres by Kaushik Tunuguntla.

5. it’s raining letters! by Luca Ferrari.

6. Time box by Peter Campbell Smith.

7. Minimum Time in the Box by Roger Bell_West.

8. Time to see what is in the boxes by Simon Green.


GitHub Repository Stats


1. Commits: 42,705 (+106)

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

3. Contributors: 257

4. Fork: 325

5. Stars: 187



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

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


Task 1: Broken Keys

Submitted by: Mohammad Sajid Anwar

You have a broken keyboard which sometimes type a character more than once.

You are given a string and actual typed string.

Write a script to find out if the actual typed string is meant for the given string.

Example 1

Input: $name = "perl", $typed = "perrrl"
Output: true

Here "r" is pressed 3 times instead of 1 time.

Example 2

Input: $name = "raku", $typed = "rrakuuuu"
Output: true

Example 3

Input: $name = "python", $typed = "perl"
Output: false

Example 4

Input: $name = "coffeescript", $typed = "cofffeescccript"
Output: true

Task 2: Reverse Letters

Submitted by: Mohammad Sajid Anwar

You are given a string.

Write a script to reverse only the alphabetic characters in the string.

Example 1

Input: $str = "p-er?l"
Output: "l-re?p"

Example 2

Input: $str = "wee-k!L-y"
Output: "yLk-e!e-w"

Example 3

Input: $str = "_c-!h_all-en!g_e"
Output: "_e-!g_nel-la!h_c"


Last date to submit the solution 23:59 (UK Time) Sunday 23rd March 2025.


SO WHAT DO YOU THINK ?

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

Contact with me