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: Move Zero
10. TASK #2: Wiggle Sort
HEADLINES
Welcome to the Week #197
of The Weekly Challenge
.
Advent Calendar 2022 celebration is finally over, thanks to the contributions by the members of Team PWC
.
By the way, did you know that our Advent Calendar
is now live on DEV.to. Please do like the post.
Holiday season kicks-in and as expected Team PWC
members taking well deserved break from the weekly challenge. I am pleasantly surprised that some managed to submit the solutions even during the break. During holiday season, we still managed to get the magical number finally. Thank you Team PWC
for the support and encouragement.
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 |
58 | 31 | 21 |
194 |
58 | 32 | 19 |
195 |
58 | 29 | 19 |
196 |
51 | 29 | 20 |
Last week, we had 34
regular contributors and 7
guest contributors. Thank you everyone for the support and encouragement.
Today, we are giving away Coupon #20
to David Ferrone
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. | |
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 29 guest contributions
in 12 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 (1254)
2. Haskell (521)
3. Ruby (439)
4. Lua (423)
5. C (306)
6. C++ (305)
7. Rust (280)
8. BQN (267)
9. Go (233)
10. Java (211)
Blogs with Creative Title
1. 132 Lists by Arne Sommer.
2. Range Rover, Over Clover by Colin Crain.
3. Insert Clever Title Here by Dave Jacoby.
4. Merry Christmas! by Luca Ferrari.
5. Pattern 132 and sequential runs by Peter Campbell Smith.
6. Pattern and Range by Roger Bell_West.
GitHub Repository Stats
1. Commits: 29,884 (+96
)
2. Pull Requests: 7,299 (+30
)
3. Contributors: 215 (+1
)
4. Fork: 271
5. Stars: 149 (+1
)
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 - 196 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 #196.
Please find past solutions by respected guests. Please share your creative solutions in other languages.
Task 1: Move Zero
Submitted by: Mohammad S Anwar
You are given a list of integers, @list
.
Write a script to move all zero, if exists, to the end while maintaining the relative order of non-zero
elements.
Example 1
Input: @list = (1, 0, 3, 0, 0, 5)
Output: (1, 3, 5, 0, 0, 0)
Example 2
Input: @list = (1, 6, 4)
Output: (1, 6, 4)
Example 3
Input: @list = (0, 1, 0, 2, 0)
Output: (1, 2, 0, 0, 0)
Task 2: Wiggle Sort
Submitted by: Mohammad S Anwar
You are given a list of integers, @list
.
Write a script to perform Wiggle Sort
on the given list.
Wiggle sort would be such as list[0] < list[1] > list[2] < list[3]….
Example 1
Input: @list = (1,5,1,1,6,4)
Output: (1,6,1,5,1,4)
Example 2
Input: @list = (1,3,2,2,3,1)
Output: (2,3,1,3,1,2)
Last date to submit the solution 23:59 (UK Time) Sunday 1st January 2023.