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: Consecutive Odds
10. TASK #2: Widest Valley
HEADLINES
Welcome to the Week #202
of The Weekly Challenge
.
Last week, India celebrated Republic Day
on 26th January
. I have some fond memories from my school days. Singing national anthem and getting sweets. Also watching the republic day parade on TV for hours. Ever since, I moved to England
, the attachment is no longer as strong as it used to be. I hope and wish, all those living in India
still had fun.
You must have noticed that I don’t merge the pull requests during the weekdays? Please bear with me for the time being. I assure you, every single contributions will be accepted, merged and shared with the team before the deadline.
Generally we talk more about the Perl
and Raku
contributors as compare to other guest languages. However, I know for a fact the it is not easy to get the job done in so many different languages. One such name is Roger Bell_West
consistently sharing solutions in Perl
, Raku
, JavaScript
, Kotlin
, Lua
, Postscript
, Python
, Ruby
and Rust
. Hats off to your efforts. Recently Ali Moradi
joined the gang big time.
I also noticed Conor Hoekstra
is back in action after a short gap. Welcome back.
Ulrich Rieke
is another consistent guest contributors. His choice of languages varies.
How can I miss, Robert DiCicco
? Sometimes, I wonder how is it possible to do so many different languages. I find it hard to handle just a handfull. Kudos to all guest contributors.
I would also like to thank everyone for suggesting fun tasks. It is a big help for me.
Today, we are giving away Coupon #25
to Roger Bell_West
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. | Athanasius |
20. | David Ferrone |
21. | Thomas Kohler |
22. | Adam Russell |
23. | E. Choroba |
24. | Pip Stuart |
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. | ||
We have now reached the milestone of 100+
contributions for the 18th consecutive weeks
. This is no small feat. Thank you Team PWC
.
Week |
Perl |
Raku |
Blog |
184 |
57 | 31 | 17 |
185 |
61 | 35 | 19 |
186 |
58 | 33 | 20 |
187 |
51 | 34 | 20 |
188 |
63 | 36 | 16 |
189 |
62 | 35 | 18 |
190 |
55 | 32 | 23 |
191 |
56 | 38 | 21 |
192 |
59 | 41 | 23 |
193 |
55 | 31 | 22 |
194 |
58 | 32 | 19 |
195 |
58 | 29 | 19 |
196 |
51 | 29 | 20 |
197 |
49 | 31 | 20 |
198 |
54 | 37 | 23 |
199 |
52 | 32 | 22 |
200 |
55 | 33 | 23 |
201 |
55 | 29 | 22 |
I would like to thank every guest contributors for making it special every week. Last week we received 57 guest contributions
in 21 languages
.
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 (1293)
2. Haskell (528)
3. Ruby (455)
4. Lua (439)
5. C (320)
6. C++ (314)
7. Rust (303)
8. BQN (268)
9. Go (238)
10. Java (216)
Blogs with Creative Title
1. How Many Missing Coins? by Adam Russell.
2. Pennies by the numbers by Arne Sommer.
3. not satisfied! by Luca Ferrari.
4. Penny Numbers by Roger Bell_West.
5. Missing pennies by Simon Green.
GitHub Repository Stats
1. Commits:30,444 (+124
)
2. Pull Requests: 7,488 (+42
)
3. Contributors: 216
4. Fork: 274
5. Stars: 151
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 - 201 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
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 #201.
Please find past solutions by respected guests. Please share your creative solutions in other languages.
Task 1: Consecutive Odds
Submitted by: Mohammad S Anwar
You are given an array of integers.
Write a script to print 1
if there are THREE
consecutive odds in the given array otherwise print 0
.
Example 1
Input: @array = (1,5,3,6)
Output: 1
Example 2
Input: @array = (2,6,3,5)
Output: 0
Example 3
Input: @array = (1,2,3,4)
Output: 0
Example 4
Input: @array = (2,3,5,7)
Output: 1
Task 2: Widest Valley
Submitted by: E. Choroba
Given a profile as a list of altitudes, return the leftmost widest valley. A valley is defined as a subarray of the profile consisting of two parts: the first part is non-increasing and the second part is non-decreasing. Either part can be empty.
Example 1
Input: 1, 5, 5, 2, 8
Output: 5, 5, 2, 8
Example 2
Input: 2, 6, 8, 5
Output: 2, 6, 8
Example 3
Input: 9, 8, 13, 13, 2, 2, 15, 17
Output: 13, 13, 2, 2, 15, 17
Example 4
Input: 2, 1, 2, 1, 3
Output: 2, 1, 2
Example 5
Input: 1, 3, 3, 2, 1, 2, 3, 3, 2
Output: 3, 3, 2, 1, 2, 3, 3
Last date to submit the solution 23:59 (UK Time) Sunday 5th February 2023.