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: Same String
10. TASK #2: Consistent Strings
HEADLINES
Welcome to the Week #239
of The Weekly Challenge
.
Thank you, Robbie Hatley
for the prompt response and sharing the interview.
Let us all welcome another Perl
hacker, Augie De Blieck Jr., to the Team PWC
. Thank you for your first contributions in Perl and Elixir. We also received blog posts for [Perl Task #1], [Perl Task #2] and [Elixir Task #1].
Luca Ferrari
came up with solutions in Python for the first time.
Lance Wicks
also found time to share his Perl solution to the Task #1
.
Andrew Grangaard
came back after the break and shared solutions in Perl and Python.
Last 5 weeks
mainstream contribution stats. Thank you Team PWC
for your support and encouragements.
Week |
Perl |
Raku |
Blog |
234 |
52 | 35 | 24 |
235 |
61 | 34 | 24 |
236 |
51 | 34 | 29 |
237 |
48 | 34 | 26 |
238 |
60 | 37 | 29 |
Last 5 weeks
guest contribution stats. Thank you each and every guest contributors for your time and efforts.
Week |
Guests |
Contributions |
Languages |
234 |
12 | 48 | 15 |
235 |
14 | 78 | 23 |
236 |
14 | 62 | 20 |
237 |
14 | 54 | 16 |
238 |
15 | 79 | 24 |
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 (1886)
2. Ruby (603
3. Haskell (596)
4. Lua (528)
5. C (445)
6. Rust (445)
7. C++ (415)
8. BQN (309)
9. Go (283)
10. JavaScript (274)
Blogs with Creative Title
1. Persistently Running by Arne Sommer.
2. Running and Persistence by Bob Lied.
3. You Can’t Touch This! by Dave Jacoby.
4. running sums and multiplications by Luca Ferrari.
5. Reduced Arrays, Reduced Numbers, Reduced Code by Matthias Muth.
6. Be Runnin’ Up That Sum, Be Persisten’ Up That Sort by Packy Anderson.
7. Running persistence by Peter Campbell Smith.
8. Running Persistence by Roger Bell_West.
9. Counting and sorting by Simon Green.
GitHub Repository Stats
1. Commits: 34,651 (+112
)
2. Pull Requests: 8,860 (+40
)
3. Contributors: 234 (+1
)
4. Fork: 295 (+2
)
5. Stars: 164
SPONSOR
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.
RECAP
Quick recap of The Weekly Challenge - 238 by Mohammad S 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
Augie De Blieck Jr., an experienced Perl
hacker from NJ
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.
GUESTS
Please check out the guest contributions for the Week #238.
Please find past solutions by respected guests. Please share your creative solutions in other languages.
Task 1: Same String
Submitted by: Mohammad S Anwar
You are given two arrays of strings.
Write a script to find out if the word created by concatenating the array elements is the same.
Example 1
Input: @arr1 = ("ab", "c")
@arr2 = ("a", "bc")
Output: true
Using @arr1, word1 => "ab" . "c" => "abc"
Using @arr2, word2 => "a" . "bc" => "abc"
Example 2
Input: @arr1 = ("ab", "c")
@arr2 = ("ac", "b")
Output: false
Using @arr1, word1 => "ab" . "c" => "abc"
Using @arr2, word2 => "ac" . "b" => "acb"
Example 3
Input: @arr1 = ("ab", "cd", "e")
@arr2 = ("abcde")
Output: true
Using @arr1, word1 => "ab" . "cd" . "e" => "abcde"
Using @arr2, word2 => "abcde"
Task 2: Consistent Strings
Submitted by: Mohammad S Anwar
You are given an array of strings and allowed string having distinct characters.
A string is consistent if all characters in the string appear in the string allowed.
Write a script to return the number of consistent strings in the given array.
Example 1
Input: @str = ("ad", "bd", "aaab", "baa", "badab")
$allowed = "ab"
Output: 2
Strings "aaab" and "baa" are consistent since they only contain characters 'a' and 'b'.
Example 2
Input: @str = ("a", "b", "c", "ab", "ac", "bc", "abc")
$allowed = "abc"
Output: 7
Example 3
Input: @str = ("cc", "acd", "b", "ba", "bac", "bad", "ac", "d")
$allowed = "cad"
Output: 4
Strings "cc", "acd", "ac", and "d" are consistent.
Last date to submit the solution 23:59 (UK Time) Sunday 22nd October 2023.