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: Uncommon Words
10. TASK #2: X Matrix
HEADLINES
Welcome to the Week #266
of The Weekly Challenge
.
Normally we focus on varieties of solutions in different languages every week but never talked about blog post we received every week. We have handful of regulars who blog every week without fail. It would be unfair if I name one but you know who I am talking about. I would like to take this opportunity and thank each bloggers for their dedication. I know it is time consuming to write engaging blog post. Infact, it takes more time to blog than code, in my personal experience. It is the blog post that shares the background story behind each solution. It is not easy to extract that information by reading the code. Looking at the last 5 weeks
stats, we are getting 25 or more
blog post every week. First thing that catches my attention is the title of the post. If you take a closer look of weekly contributions, you will find some very creative title.
Keep it up great work and share the knowledge with the team.
Last 5 weeks
mainstream contribution stats. Thank you Team PWC
for your support and encouragements.
Week |
Perl |
Raku |
Blog |
261 |
55 | 32 | 25 |
262 |
59 | 32 | 25 |
263 |
61 | 34 | 28 |
264 |
50 | 34 | 26 |
265 |
54 | 32 | 26 |
Last 5 weeks
guest contribution stats. Thank you each and every guest contributors for your time and efforts.
Week |
Guests |
Contributions |
Languages |
261 |
18 | 79 | 24 |
262 |
18 | 80 | 24 |
263 |
19 | 79 | 23 |
264 |
14 | 66 | 20 |
265 |
12 | 52 | 16 |
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 (2441)
2. Ruby (674)
3. Haskell (656)
4. Rust (608)
5. Lua (594)
6. C (528)
7. C++ (500)
8. JavaScript (397)
9. Go (353)
10. BQN (331)
Blogs with Creative Title
1. 33% Word by Arne Sommer.
2. Matter Of Fact, It’s All Dark by Dave Jacoby.
3. For Almost a Third Complete by Jorg Sommrey.
4. arrays and dictionaries by Luca Ferrari.
5. Completing a Third of an Appearance by Packy Anderson.
6. Frequent number and shortest word by Peter Campbell Smith.
7. The Appearance of Completion by Roger Bell_West.
8. Completing Appearance by Simon Green.
GitHub Repository Stats
1. Commits: 37,722 (+111
)
2. Pull Requests: 9,954 (+30
)
3. Contributors: 243
4. Fork: 308 (+2
)
5. Stars: 171
SPONSOR
In the year 2024
, we are looking for new sponsor for monthly 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 - 265 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 #265.
Please find past solutions by respected guests. Please share your creative solutions in other languages.
Task 1: Uncommon Words
Submitted by: Mohammad Sajid Anwar
You are given two sentences, $line1
and $line2
.
Write a script to find all uncommmon words in any order in the given two sentences. Return ('')
if none found.
A word is uncommon if it appears exactly once in one of the sentences and doesn’t appear in other sentence.
Example 1
Input: $line1 = 'Mango is sweet'
$line2 = 'Mango is sour'
Output: ('sweet', 'sour')
Example 2
Input: $line1 = 'Mango Mango'
$line2 = 'Orange'
Output: ('Orange')
Example 3
Input: $line1 = 'Mango is Mango'
$line2 = 'Orange is Orange'
Output: ('')
Task 2: X Matrix
Submitted by: Mohammad Sajid Anwar
You are given a square matrix, $matrix
.
Write a script to find if the given matrix is X Matrix
.
A square matrix is an X Matrix if all the elements on the main diagonal and antidiagonal are non-zero and everything else are zero.
Example 1
Input: $matrix = [ [1, 0, 0, 2],
[0, 3, 4, 0],
[0, 5, 6, 0],
[7, 0, 0, 1],
]
Output: true
Example 2
Input: $matrix = [ [1, 2, 3],
[4, 5, 6],
[7, 8, 9],
]
Output: false
Example 3
Input: $matrix = [ [1, 0, 2],
[0, 3, 0],
[4, 0, 5],
]
Output: true
Last date to submit the solution 23:59 (UK Time) Sunday 28th April 2024.