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: Good Integer
10. TASK #2: Changing Keys
HEADLINES
Welcome to the Week #282
of The Weekly Challenge
.
Let us all welcome two new Perl
hackers, Kavya S P
and GarciaAutomation
to Team PWC
.
Thank you, GarciaAutomation
, for sharing your first contributions in Perl.
Thank you, Adam Russell
, for back to back contributions in Perl and bonus blog post.
Thank you, Andrew Schneider
for sharing contributions in Perl, Julia, Racket and bonus blog post even while on holiday.
Welcome back, Cheok-Yin Fung
, and thanks for your contributions in Perl and bonus blog post.
Welcome back, Simon Green
, and thanks for your contributions in Perl, Python and bonus blog post.
Last 5 weeks
mainstream contribution stats. Thank you Team PWC
for your support and encouragements.
Week |
Perl |
Raku |
Blog |
277 |
66 | 30 | 29 |
278 |
57 | 28 | 24 |
279 |
56 | 28 | 16 |
280 |
56 | 28 | 27 |
281 |
61 | 25 | 23 |
Last 5 weeks
guest contribution stats. Thank you each and every guest contributors for your time and efforts.
Week |
Guests |
Contributions |
Languages |
277 |
16 | 53 | 18 |
278 |
13 | 68 | 21 |
279 |
16 | 66 | 21 |
280 |
14 | 63 | 22 |
281 |
15 | 64 | 23 |
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 (2702)
2. Ruby (715)
3. Rust (707)
4. Haskell (694)
5. Lua (630)
6. C (571)
7. C++ (532)
8. JavaScript (465)
9. Go (394)
10. BQN (356)
Blogs with Creative Title
1. Checking Out the Knight’s Moves by Adam Russell.
2. Chess Moves by Andrew Schneider.
3. Color of Knight by Arne Sommer.
4. Where is the chess piece going to? by Cheok-Yin Fung.
5. Pawning Things Off by Dave Jacoby.
6. Colors of the Knight by Jorg Sommrey.
7. Knights of Class by Matthias Muth.
8. The Ultimate Test of Cerebral Fitness by Packy Anderson.
9. Anyone for chess? by Peter Campbell Smith.
10. Check the Knight’s Colour by Roger Bell_West.
11. The one about a chess board by Simon Green.
GitHub Repository Stats
1. Commits: 39,466 (+130
)
2. Pull Requests: 10,573 (+45
)
3. Contributors: 250
4. Fork: 316 (+1
)
5. Stars: 175
SPONSOR
With start of Week #268
, we have a new sponsor Lance Wicks
for the entire year 2024
. Having said we are looking for more sponsors so that we can go back to weekly winner. If anyone interested please get in touch with us at perlweeklychallenge@yahoo.com
. Thanks for your support in advance.
RECAP
Quick recap of The Weekly Challenge - 281 by Mohammad Sajid 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
Kavya S P
, an experienced Perl
hacker from Washington State, United States
joined Team PWC
.
GarciaAutomation, an experienced Perl
hacker joined 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 #281.
Please find past solutions by respected guests. Please share your creative solutions in other languages.
Task 1: Good Integer
Submitted by: Mohammad Sajid Anwar
You are given a positive integer, $int
, having 3 or more digits
.
Write a script to return the Good Integer
in the given integer or -1
if none found.
A good integer is exactly three consecutive matching digits.
Example 1
Input: $int = 12344456
Output: "444"
Example 2
Input: $int = 1233334
Output: -1
Example 3
Input: $int = 10020003
Output: "000"
Task 2: Changing Keys
Submitted by: Mohammad Sajid Anwar
You are given an alphabetic string, $str
, as typed by user.
Write a script to find the number of times user had to change the key to type the given string. Changing key is defined as using a key different from the last used key. The shift
and caps lock
keys won’t be counted.
Example 1
Input: $str = 'pPeERrLl'
Ouput: 3
p -> P : 0 key change
P -> e : 1 key change
e -> E : 0 key change
E -> R : 1 key change
R -> r : 0 key change
r -> L : 1 key change
L -> l : 0 key change
Example 2
Input: $str = 'rRr'
Ouput: 0
Example 3
Input: $str = 'GoO'
Ouput: 1
Last date to submit the solution 23:59 (UK Time) Sunday 18th August 2024.