The Weekly Challenge - 335

Monday, Aug 18, 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: Common Characters

10. TASK #2: Find Winner


HEADLINES


Welcome to the Week #335 of The Weekly Challenge.

Thank you, Yitzchak Scott-Thoennes, for your prompt reply and for confirming the prize money transfer.

I noticed a surprising dip in contributions last week and I’m not sure what the reason might be.

I hope everyone is enjoying the weekly challenge!

If you ask me, I would say, I particularly enjoy reading the discussions on various social platforms.

I would also encourage all Team PWC members to share their magical code with a wider audience.

Happy Hacking!!


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

  Week      Perl       Raku       Blog   
   330       50       29       25   
   331       52       27       23   
   332       50       30       25   
   333       52       27       25   
   334       46       27       15   

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

  Week      Guests       Contributions       Languages   
   330       12       62       19   
   331       13       62       20   
   332       13       64       21   
   333       11       56       19   
   334       12       56       19   

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     (3538)
 2. Rust       (972)
 3. Ruby       (815)
 4. Haskell    (801)
 5. Lua        (751)
 6. C++        (641)
 7. C          (596)
 8. JavaScript (578)
 9. Go         (527)
10. BQN        (458)

Blogs with Creative Title


1. Point Range by Arne Sommer.

2. First We Do the Range Sum, Then We Take Manhattan by Bob Lied.

3. Slice and Dice by Jorg Sommrey.

4. Perl Slices Make a Valid Point by Matthias Muth.

5. SUMone tell me what makes a point VALID? by Packy Anderson.

6. A slice of New York by Peter Campbell Smith.

7. All Sums Are Valid by Roger Bell_West.

8. Perl has classes now by Simon Green.


GitHub Repository Stats


1. Commits: 44,859 (+83)

2. Pull Requests: 12,489 (+33)

3. Contributors: 263

4. Fork: 334

5. Stars: 195



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

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


Task 1: Common Characters

Submitted by: Mohammad Sajid Anwar

You are given an array of words.

Write a script to return all characters that is in every word in the given array including duplicates.


Example 1

Input: @words = ("bella", "label", "roller")
Output: ("e", "l", "l")

Example 2

Input: @words = ("cool", "lock", "cook")
Output: ("c", "o")

Example 3

Input: @words = ("hello", "world", "pole")
Output: ("l", "o")

Example 4

Input: @words = ("abc", "def", "ghi")
Output: ()

Example 5

Input: @words = ("aab", "aac", "aaa")
Output: ("a", "a")

Task 2: Find Winner

Submitted by: Mohammad Sajid Anwar

You are given an array of all moves by the two players.

Write a script to find the winner of the TicTacToe game if found based on the moves provided in the given array.

UPDATE: Order move is in the order - A, B, A, B, A, ….


Example 1

Input: @moves = ([0,0],[2,0],[1,1],[2,1],[2,2])
Output: A

Game Board:
[ A _ _ ]
[ _ A _ ]
[ B B A ]

Example 2

Input: @moves = ([0,0],[1,1],[0,1],[0,2],[1,0],[2,0])
Output: B

Game Board:
[ A A B ]
[ A B _ ]
[ B _ _ ]

Example 3

Input: @moves = ([0,0],[1,1],[2,0],[1,0],[1,2],[2,1],[0,1],[0,2],[2,2])
Output: Draw

Game Board:
[ A A B ]
[ B B A ]
[ A B A ]

Example 4

Input: @moves = ([0,0],[1,1])
Output: Pending

Game Board:
[ A _ _ ]
[ _ B _ ]
[ _ _ _ ]

Example 5

Input: @moves = ([1,1],[0,0],[2,2],[0,1],[1,0],[0,2])
Output: B

Game Board:
[ B B B ]
[ A A _ ]
[ _ _ A ]


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


SO WHAT DO YOU THINK ?

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

Contact with me