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: Pattern 132
10. TASK #2: Range List
HEADLINES
Welcome to the Week #196
of The Weekly Challenge
.
Welcome 2 new members
to the Team PWC
, Pip Stuart and Carlos Oliveira. They are both experienced Perl
hacker.
Advent Calendar 2022 is going on with full swing, thanks to the contributions by the members of Team PWC
.
Day |
Article |
Author |
1 |
Are Abecedarians from Abecedaria? | Adam Russell |
2 |
Binary String / Odd String | James Smith |
3 |
Counting Cute | Colin Crain |
4 |
Four is Magic | Alexander Pankoff |
5 |
Farey, Moebius | Arne Sommer |
6 |
Our Primes | Dave Jacoby |
7 |
Three means and big bases | Simon Green |
8 |
Pernicious / Weird Number | Cheok-Yin Fung |
9 |
Fortune and Pisani | Luca Ferrari |
10 |
Padawan Missing | Bruce Gray |
11 |
Factorions | Flavio Poletti |
12 |
Triangle Sum Path / Rectangle Area | W. Luis Mochan |
13 |
Capital test and ambiguous encoding | Peter Campbell Smith |
14 |
Days Together / Mask Code | Andinus |
15 |
Array Degree | E. Choroba |
16 |
Divisible Pairs / Total Zero | Jaldhar H. Vyas |
17 |
Digital Clock and Frequency Equalizer | Laurent Rosenfeld |
18 |
Odd Abundant Numbers | Ryan Thompson |
19 |
Zip List / Unicode makeover | Stephen G. Lynn |
Another week another achievement. Thank you Team PWC
for the support and encouragement.
Week |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
Perl |
57 | 61 | 58 | 51 | 63 | 62 | 55 | 56 | 59 | 58 | 58 | 58 |
Raku |
31 | 35 | 33 | 34 | 36 | 35 | 32 | 38 | 41 | 31 | 32 | 29 |
Blog |
17 | 19 | 20 | 20 | 16 | 18 | 23 | 21 | 23 | 21 | 19 | 19 |
Last week, we had 37
regular contributors and 10
guest contributors. Thank you everyone for the support and encouragement.
Today, we are giving away Coupon #19
to Athanasius
for the book, Learning Perl Exercises by brian d foy
. I will share the details with you in a separate email.
Past Winners
S. No. |
Name |
S. No. |
Name |
1. | Cheok-Yin Fung | 2. | W. Luis Mochan |
3. | Robert DiCicco | 4. | Kueppo Wesley |
5. | Solathian | 6. | Dario Mazzeo |
7. | Peter Campbell Smith | 8. | Kjetil Skotheim |
9. | Neils van Dijke | 10. | Laurent Rosenfeld |
11. | Duncan C. White | 12. | Ali Moradi |
13. | Jorg Sommrey | 14. | James Smith |
15. | Alexander Pankoff | 16. | Simon Green |
17. | Robbie Hatley | 18. | Bob Lied |
19. | 20. | ||
21. | 22. | ||
23. | 24. | ||
25. | 26. | ||
27. | 28. | ||
29. | 30. | ||
31. | 32. | ||
33. | 34. | ||
35. | 36. | ||
37. | 38. | ||
39. | 40. | ||
41. | 42. | ||
43. | 44. | ||
45. | 46. | ||
47. | 48. | ||
49. | 50. | ||
I would like to thank every guest contributors for making it special every week. Last week we received 53 guest contributions
in 18 languages
.
With so much going on in the recent weeks, I hardly find time to contribute my solutions. I will try my best in coming weeks to get back on track.
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 (1247)
2. Haskell (520)
3. Ruby (436)
4. Lua (421)
5. C (304)
6. C++ (304)
7. Rust (276)
8. BQN (267)
9. Go (233)
10. Java (211)
Blogs with Creative Title
1. Especially Frequent Even by Adam Russell.
2. Especially Even by Arne Sommer.
3. Special Speedy Frequency by Bruce Gray.
4. Well Ain’t That Special by Colin Crain.
5. Bags to the rescue! by Luca Ferrari.
6. Some numbers are special and others are frequent and even by Peter Campbell Smith.
7. Frequently Special by Roger Bell_West.
GitHub Repository Stats
1. Commits: 29,788 (+103
)
2. Pull Requests: 7,269 (+38
)
3. Contributors: 214 (+1
)
4. Fork: 271 (+3
)
5. Stars: 148
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 2022. 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 2022. 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 - 195 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
Pip Stuart, an experienced Perl
hacker from Oshkosh, Wisconsin, USA
joined Team PWC
.
Carlos Oliveira, an experienced Perl
hacker joined 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 #195.
Please find past solutions by respected guests. Please share your creative solutions in other languages.
Task 1: Pattern 132
Submitted by: Mohammad S Anwar
You are given a list of integers, @list
.
Write a script to find out subsequence that respect Pattern 132
. Return empty array if none found.
Pattern 132 in a sequence (a[i], a[j], a[k]) such that
i < j < k and a[i] < a[k] < a[j]
.
Example 1
Input: @list = (3, 1, 4, 2)
Output: (1, 4, 2) respect the Pattern 132.
Example 2
Input: @list = (1, 2, 3, 4)
Output: () since no susbsequence can be found.
Example 3
Input: @list = (1, 3, 2, 4, 6, 5)
Output: (1, 3, 2) if more than one subsequence found then return the first.
Example 4
Input: @list = (1, 3, 4, 2)
Output: (1, 3, 2)
Task 2: Range List
Submitted by: Mohammad S Anwar
You are given a sorted unique integer array, @array
.
Write a script to find all possible Number Range
i.e [x, y] represent range all integers from x
and y
(both inclusive).
Each subsequence of two or more contiguous integers
Example 1
Input: @array = (1,3,4,5,7)
Output: [3,5]
Example 2
Input: @array = (1,2,3,6,7,9)
Output: [1,3], [6,7]
Example 3
Input: @array = (0,1,2,4,5,6,8,9)
Output: [0,2], [4,6], [8,9]
Last date to submit the solution 23:59 (UK Time) Sunday 25th December 2022.