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: Greater Character
10. TASK #2: Array Degree
HEADLINES
Welcome to the Week #189
of The Weekly Challenge
.
Two new members, Vamsi Meenavilli and Andrew Grangaard joined the Team PWC
last week. With this we now have 275 members
in the Team PWC
.
Thanks Vamsi
for your first contributions in Perl and Python.
Thanks Andrew
for your first contributions in Perl, Python and Rust.
We are into the last week of Hacktoberfest 2022
. Well done Team PWC
for making it big week after week.
Week |
184 |
185 |
186 |
187 |
188 |
Perl |
57 | 61 | 58 | 51 | 63 |
Raku |
31 | 35 | 33 | 34 | 36 |
Blog |
17 | 19 | 20 | 20 | 16 |
Last week, we had 41
regular contributors and 18
guest contributors. Thank you everyone for the support and encouragement.
Today, we are giving away Token #12
to Ali Moradi
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. | |
13. | 14. | ||
15. | 16. | ||
17. | 18. | ||
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 this time as we received 84 contributions
in 26 languages
.
Thank you, Ali Moradi
, for introducing new language Nelua. As of today, we now have overall guest contributions in 92 languages
on top of main contributing languages, Perl
and Raku
.
Last week, I managed to contribute in Perl
, Raku
, Python
, Java
and Swift
after a long time.
Task #1: Divisible Pairs
[Perl] [Raku] [Python] [Java] [Swift]
Task #2: Total Zero
[Perl] [Raku] [Python] [Java] [Swift]
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 (1163)
2. Haskell (504)
3. Ruby (410)
4. Lua (397)
5. C (280)
6. C++ (280)
7. BQN (265)
8. Rust (248)
9. Go (228)
10. Node.js (196)
Blogs with Creative Title
1. Pairs Divided by Zero by Adam Russell.
2. Zero Divisibility by Arne Sommer.
3. I have no time this week! by Luca Ferrari.
4. Divisible pairs and reduce to nothing by Peter Campbell Smith.
5. Divisible Zero by Roger Bell_West.
GitHub Repository Stats
1. Commits: 28,776 (+191)
2. Pull Requests: 6,994 (+49)
3. Contributors: 211 (+3)
4. Fork: 268 (+3)
5. Stars: 144
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 - 188 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
Vamsi Meenavilli, an experienced Perl
hacker from India
.
Andrew Grangaard, an experienced Perl
hacker from California
.
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 #188.
Please find past solutions by respected guests. Please share your creative solutions in other languages.
Task 1: Greater Character
Submitted by: Mohammad S Anwar
You are given an array of characters (a..z) and a target character.
Write a script to find out the smallest character in the given array lexicographically greater than the target character.
Example 1
Input: @array = qw/e m u g/, $target = 'b'
Output: e
Example 2
Input: @array = qw/d c e f/, $target = 'a'
Output: c
Example 3
Input: @array = qw/j a r/, $target = 'o'
Output: r
Example 4
Input: @array = qw/d c a f/, $target = 'a'
Output: c
Example 5
Input: @array = qw/t g a l/, $target = 'v'
Output: v
Task 2: Array Degree
Submitted by: Mohammad S Anwar
You are given an array of 2 or more non-negative integers.
Write a script to find out the smallest slice, i.e. contiguous subarray of the original array, having the degree of the given array.
The degree of an array is the maximum frequency of an element in the array.
Example 1
Input: @array = (1, 3, 3, 2)
Output: (3, 3)
The degree of the given array is 2.
The possible subarrays having the degree 2 are as below:
(3, 3)
(1, 3, 3)
(3, 3, 2)
(1, 3, 3, 2)
And the smallest of all is (3, 3).
Example 2
Input: @array = (1, 2, 1, 3)
Output: (1, 2, 1)
Example 3
Input: @array = (1, 3, 2, 1, 2)
Output: (2, 1, 2)
Example 4
Input: @array = (1, 1, 2, 3, 2)
Output: (1, 1)
Example 5
Input: @array = (2, 1, 2, 1, 1)
Output: (1, 2, 1, 1)
Last date to submit the solution 23:59 (UK Time) Sunday 6th November 2022.