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: Binary Prefix
10. TASK #2: Alien Dictionary
HEADLINES
Welcome to the Week #305
of The Weekly Challenge
.
We got the gift of new year 2025
in the form of sponsorship. Thank you, Lance Wicks
, for continued sponsoring the weekly challenge.
Year 2024 Report
Jan: Nelo Tovar - PAID
Feb: Mustafa Aydin - Waiting response
Mar: Asher Harvey-Smith - PAID
Apr: Reinier Maliepaard - PAID
May: Laurent Rosenfeld - Waiting response
Jun: Jaldhar H. Vyas - PAID
Jul: Andrew Schneider - Donated back to the PWC fund
Aug: Mariano Ortega - PAID
Sep: Roger Bell_West - PAID
Oct: Santiago Levya - PAID
Nov: E. Choroba - Waiting response
Dec: Arne Sommer - PAID
I request winner to get back with ideally PayPal
account. It is very easy to make the payment through PayPal
. You can create an account if you don’t already have it. It doesn’t take long, use it to accept the payment and then you can close it immediately.
Last 5 weeks
mainstream contribution stats. Thank you Team PWC
for your support and encouragements.
Week |
Perl |
Raku |
Blog |
300 |
41 | 19 | 16 |
301 |
45 | 18 | 13 |
302 |
39 | 20 | 16 |
303 |
40 | 18 | 12 |
304 |
34 | 21 | 13 |
Last 5 weeks
guest contribution stats. Thank you each and every guest contributors for your time and efforts.
Week |
Guests |
Contributions |
Languages |
300 |
10 | 42 | 16 |
301 |
9 | 39 | 15 |
302 |
12 | 48 | 19 |
303 |
8 | 37 | 15 |
304 |
7 | 43 | 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 (3149)
2. Rust (832)
3. Ruby (763)
4. Haskell (739)
5. Lua (680)
6. C (590)
7. C++ (581)
8. JavaScript (526)
9. Go (450)
10. BQN (408)
Blogs with Creative Title
1. Arranged Average by Arne Sommer.
2. Not Modified by Dave Jacoby.
3. Average Replacements by Jorg Sommrey.
4. am I lazy? by Luca Ferrari.
5. Arrange Any Aligned Average by Matthias Muth.
6. Adding ones and maxing the mean by Peter Campbell Smith.
7. Binary to the Maxmim by Roger Bell_West.
GitHub Repository Stats
1. Commits: 41,983 (+82
)
2. Pull Requests: 11,448 (+31
)
3. Contributors: 256
4. Fork: 323
5. Stars: 182 (+1
)
SPONSOR
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 - 304 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 #304.
Please find past solutions by respected guests. Please share your creative solutions in other languages.
Task 1: Binary Prefix
Submitted by: Mohammad Sajid Anwar
You are given a binary array.
Write a script to return an array of booleans where the partial binary number up to that point is prime.
Example 1
Input: @binary = (1, 0, 1)
Output: (false, true, true)
Sub-arrays (base-10):
(1): 1 - not prime
(1, 0): 2 - prime
(1, 0, 1): 5 - prime
Example 2
Input: @binary = (1, 1, 0)
Output: (false, true, false)
Sub-arrays (base-10):
(1): 1 - not prime
(1, 1): 3 - prime
(1, 1, 0): 6 - not prime
Example 3
Input: @binary = (1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1)
Output: (false, true, true, false, false, true, false, false, false, false, false, false, false, false, false, false, false, false, false, true)
Task 2: Alien Dictionary
Submitted by: Mohammad Sajid Anwar
You are given a list of words and alien dictionary character order.
Write a script to sort lexicographically the given list of words based on the alien dictionary characters.
Example 1
Input: @words = ("perl", "python", "raku")
@alien = qw/h l a b y d e f g i r k m n o p q j s t u v w x c z/
Output: ("raku", "python", "perl")
Example 2
Input: @words = ("the", "weekly", "challenge")
@alien = qw/c o r l d a b t e f g h i j k m n p q s w u v x y z/
Output: ("challenge", "the", "weekly")
Last date to submit the solution 23:59 (UK Time) Sunday 26th January 2025.