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: Sorted Squares
10. TASK #2: Travel Expenditure
HEADLINES
Welcome to the Week #219
of The Weekly Challenge
.
Let us all welcome a new guest contributor to Team PWC
, Andrea Piseri. Thank you for your first contributions in BQN.
Thank you, BarrOff
for introducing new guest language V Lang.
Today, we are giving away Coupon #42
to BarrOff
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. | Roger Bell_West |
26. | Flavio Poletti |
27. | Dave Jacoby |
28. | Mariano Spadaccini |
29. | Lubos Kolouch |
30. | Matthew Neleigh |
31. | Paulo Custodio |
32. | Tyler Bird |
33. | Carlos Oliveira |
34. | Avery Adams |
35. | Matthias Muth |
36. | Leo Manfredi |
37. | Peter Meszaros |
38. | Arne Sommer |
39. | Jaldhar H. Vyas |
40. | Mark Anderson |
41. | Rob Turner |
42. | |
43. | 44. | ||
45. | 46. | ||
47. | 48. | ||
49. | 50. | ||
Last 5 weeks
mainstream contribution stats. Thank you Team PWC
for your support and encouragements.
Week |
Perl |
Raku |
Blog |
214 |
38 | 18 | 13 |
215 |
60 | 32 | 23 |
216 |
39 | 22 | 22 |
217 |
60 | 32 | 23 |
218 |
43 | 22 | 16 |
Last 5 weeks
guest contribution stats. Thank you each and every guest contributors for your time and efforts.
Week |
Guests |
Contributions |
Languages |
214 |
05 | 22 | 08 |
215 |
10 | 47 | 16 |
216 |
11 | 33 | 14 |
217 |
09 | 34 | 13 |
218 |
10 | 36 | 15 |
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 (1564)
2. Haskell (552)
3. Ruby (519)
4. Lua (473)
5. C (424)
6. C++ (376)
7. Rust (362)
8. BQN (270)
9. Go (257)
10. Java (224)
Blogs with Creative Title
1. Scored Product by Arne Sommer.
2. Feeling Negative by Avery Adams.
3. Highscore! by Matthias Muth.
4. Multiply three and binary matrix by Peter Campbell Smith.
5. Maximum Matrix by Roger Bell_West.
6. The one about maximums by Simon Green.
GitHub Repository Stats
1. Commits: 32,639 (+98
)
2. Pull Requests: 8,144 (+34
)
3. Contributors: 224 (+2
)
4. Fork: 282 (+2
)
5. Stars: 153
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 - 218 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
Andrea Piseri, an experienced BQN
hacker joined the 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 #218.
Please find past solutions by respected guests. Please share your creative solutions in other languages.
Task 1: Sorted Squares
Submitted by: Mohammad S Anwar
You are given a list of numbers.
Write a script to square each number in the list and return the sorted list, increasing order.
Example 1
Input: @list = (-2, -1, 0, 3, 4)
Output: (0, 1, 4, 9, 16)
Example 2
Input: @list = (5, -4, -1, 3, 6)
Output: (1, 9, 16, 25, 36)
Task 2: Travel Expenditure
Submitted by: Mohammad S Anwar
You are given two list, @costs and @days.
The list @costs contains the cost of three different types of travel cards you can buy.
For example @costs = (5, 30, 90)
Index 0 element represent the cost of 1 day travel card.
Index 1 element represent the cost of 7 days travel card.
Index 2 element represent the cost of 30 days travel card.
The list @days contains the day number you want to travel in the year.
For example: @days = (1, 3, 4, 5, 6)
The above example means you want to travel on day 1, day 3, day 4, day 5 and day 6 of the year.
Write a script to find the minimum travel cost.
Example 1:
Input: @costs = (2, 7, 25)
@days = (1, 5, 6, 7, 9, 15)
Output: 11
On day 1, we buy a one day pass for 2 which would cover the day 1.
On day 5, we buy seven days pass for 7 which would cover days 5 - 9.
On day 15, we buy a one day pass for 2 which would cover the day 15.
So the total cost is 2 + 7 + 2 => 11.
Example 2:
Input: @costs = (2, 7, 25)
@days = (1, 2, 3, 5, 7, 10, 11, 12, 14, 20, 30, 31)
Output: 20
On day 1, we buy a seven days pass for 7 which would cover days 1 - 7.
On day 10, we buy a seven days pass for 7 which would cover days 10 - 14.
On day 20, we buy a one day pass for 2 which would cover day 20.
On day 30, we buy a one day pass for 2 which would cover day 30.
On day 31, we buy a one day pass for 2 which would cover day 31.
So the total cost is 7 + 7 + 2 + 2 + 2 => 20.
Last date to submit the solution 23:59 (UK Time) Sunday 4th June 2023.