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: Minimum Index Sum
10. TASK #2: Duplicate and Missing
HEADLINES
Welcome to the Week #208
of The Weekly Challenge
.
Please do accept my apology for the late release of the weekly challenge. Thank you for your kind messages. It means a lot.
Did you notice, we now have over 10,000+
solutions in Perl
? All credit goes to the dedicated team for the support.
E. Alvarez
blog post shared JavaScript
magic. Please do checkout.
Peter Campbell Smith
has pleasantly suprised me with his blog post for Task #1 and Task #2. I noticed we have the ability to test the solution online. This is brilliant work. I am very impressed. Well done and thank for sharing with us.
I noticed Lubos Kolouch
is on a mission right now as he is going through past challenges right from the Week #1
. It is always pleasure to see team members attempting past challenges.
Similary, Paulo Custodio
is doing past challenges in BASIC
, C
, C++
and Forth
. I can’t thank you enough for your support and encouragement.
Last but not the least, we have blog post by none other than the Colin Crain
himself.
Today, we are giving away Coupon #31
to Paulo Custodio
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. | 32. | ||
33. | 34. | ||
35. | 36. | ||
37. | 38. | ||
39. | 40. | ||
41. | 42. | ||
43. | 44. | ||
45. | 46. | ||
47. | 48. | ||
49. | 50. | ||
Another bumper week with 100+
contributions. 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 |
58 | 34 | 24 |
200 |
57 | 33 | 23 |
201 |
58 | 29 | 22 |
202 |
53 | 27 | 24 |
203 |
52 | 24 | 18 |
204 |
56 | 31 | 22 |
205 |
64 | 30 | 25 |
206 |
59 | 29 | 23 |
207 |
59 | 34 | 26 |
I would like to thank every guest contributors for making it special every week. Last week we received 69 guest contributions
in 23 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 (1374)
2. Haskell (539)
3. Ruby (476)
4. Lua (450)
5. C (350)
6. C++ (346)
7. Rust (330)
8. BQN (268)
9. Go (249)
10. Java (220)
Blogs with Creative Title
1. The H Word by Arne Sommer.
2. She’s givin’ me H citatations by Bob Lied.
3. Cool Key Lime Pie by Colin Crain.
4. Multi-Status by Dave Jacoby.
5. arrays everywhere! by Luca Ferrari.
6. Almost one-liners by Matthias Muth.
7. Indexed Keyboards by Roger Bell_West.
8. The H Word by Simon Green.
GitHub Repository Stats
1. Commits: 31,152 (+252
)
2. Pull Requests: 7,716 (+85
)
3. Contributors: 219
4. Fork: 275
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 - 207 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 #207.
Please find past solutions by respected guests. Please share your creative solutions in other languages.
Task 1: Minimum Index Sum
Submitted by: Mohammad S Anwar
You are given two arrays of strings.
Write a script to find out all common strings in the given two arrays with minimum index sum. If no common strings found returns an empty list.
Example 1
Input: @list1 = ("Perl", "Raku", "Love")
@list2 = ("Raku", "Perl", "Hate")
Output: ("Perl", "Raku")
There are two common strings "Perl" and "Raku".
Index sum of "Perl": 0 + 1 = 1
Index sum of "Raku": 1 + 0 = 1
Example 2
Input: @list1 = ("A", "B", "C")
@list2 = ("D", "E", "F")
Output: ()
No common string found, so no result.
Example 3
Input: @list1 = ("A", "B", "C")
@list2 = ("C", "A", "B")
Output: ("A")
There are three common strings "A", "B" and "C".
Index sum of "A": 0 + 1 = 1
Index sum of "B": 1 + 2 = 3
Index sum of "C": 2 + 0 = 2
Task 2: Duplicate and Missing
Submitted by: Mohammad S Anwar
You are given an array of integers in sequence with one missing and one duplicate.
Write a script to find the duplicate and missing integer in the given array. Return -1 if none found.
For the sake of this task, let us assume the array contains no more than one duplicate and missing.
Example 1:
Input: @nums = (1,2,2,4)
Output: (2,3)
Duplicate is 2 and Missing is 3.
Example 2:
Input: @nums = (1,2,3,4)
Output: -1
No duplicate and missing found.
Example 3:
Input: @nums = (1,2,3,3)
Output: (3,4)
Duplicate is 3 and Missing is 4.
Last date to submit the solution 23:59 (UK Time) Sunday 19th March 2023.