The Weekly Challenge - 318

Monday, Apr 21, 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: Group Position

10. TASK #2: Reverse Equals


HEADLINES


Welcome to the Week #318 of The Weekly Challenge.

Today is the Monday Bank Holiday in England. It’s going to be rest day unlike usual start of the week activities.

I hope and wish you had great Easter break.

Let’s keep the tradition alive and Happy Hacking!!


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

  Week      Perl       Raku       Blog   
   313       53       19       13   
   314       46       19       14   
   315       42       17       14   
   316       50       23       18   
   317       48       21       17   

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

  Week      Guests       Contributions       Languages   
   313       11       49       18   
   314       12       50       18   
   315       12       56       20   
   316       11       52       19   
   317       10       48       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     (3319)
 2. Rust       (888)
 3. Ruby       (789)
 4. Haskell    (767)
 5. Lua        (710)
 6. C++        (607)
 7. C          (590)
 8. JavaScript (552)
 9. Go         (477)
10. BQN        (430)

Blogs with Creative Title


1. Acronyms Among Friends by Adam Russell.

2. Friendly Acronyms by Arne Sommer.

3. We All Live In A Yellow Substring by Dave Jacoby.

4. Philonyms by Jorg Sommrey.

5. only Raku for now! by Luca Ferrari.

6. Friendly Acronyms by Matthias Muth.

7. Acronyms and FS by Peter Campbell Smith.

8. The Friendly Acronym Song by Roger Bell_West.

9. Short and friendly by Simon Green.


GitHub Repository Stats


1. Commits: 43,183 (+106)

2. Pull Requests: 11,888 (+38)

3. Contributors: 259 (+1)

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

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


Task 1: Group Position

Submitted by: Mohammad Sajid Anwar

You are given a string of lowercase letters.

Write a script to find the position of all groups in the given string. Three or more consecutive letters form a group. Return "” if none found.


Example 1

Input: $str = "abccccd"
Output: "cccc"

Example 2

Input: $str = "aaabcddddeefff"
Output: "aaa", "dddd", "fff"

Example 3

Input: $str = "abcdd"
Output: ""

Task 2: Reverse Equals

Submitted by: Roger Bell_West

You are given two arrays of integers, each containing the same elements as the other.

Write a script to return true if one array can be made to equal the other by reversing exactly one contiguous subarray.


Example 1

Input: @source = (3, 2, 1, 4)
       @target = (1, 2, 3, 4)
Output: true

Reverse elements: 0-2

Example 2

Input: @source = (1, 3, 4)
       @target = (4, 1, 3)
Output: false

Example 3

Input: @source = (2)
       @target = (2)
Output: true


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


SO WHAT DO YOU THINK ?

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

Contact with me