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: Unique Array
10. TASK #2: Date Difference
HEADLINES
Welcome to Week #183
of the weekly challenge.
Today, we are giving away Token #6
to Dario Mazzeo
for the book, Learning Perl Exercises by brian d foy
. I will share the details with you in a separate email.
Past Winners
1) Cheok-Yin Fung
2) W. Luis Mochan
3) Robert DiCicco
4) Kueppo Wesley
5) Solathian
Please checkout the interview with Stephen G. Lynn. It was pleasant to know that Steve
is a fellow Indian.
Welcome on board, Brainslav Zahradnik
and thanks for your first contributions in Perl
.
Welcome back, Daniel Pfeiffer
, after the break and thanks for your contribution. Thanks for introducing Perl One-Liner Magic Wand.
Welcome back, Kjetil Skotheim
and thanks for your contributions.
This week also, I could only get the Perl solutions done.
TOP 10 Guest Languages
This week C
recovered the rank #5
and pushed C++
down one position..
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 (1092)
2. Haskell (493)
3. Ruby (389)
4. Lua (382)
5. C (268)
6. C++ (267)
7. Go (224)
8. Rust (224)
9. Node.js (191)
10. Awk (187)
Blogs with Creative Title
1. Deepest Common Index by Adam Russell.
2. The Common Index by Arne Sommer.
3. Just Your Garden-Variety Path by Colin Crain.
4. max and containing paths by Luca Ferrari.
5. Find the biggest and the deepest by Peter Campbell Smith.
6. Max is Common by Roger Bell_West.
GitHub Repository Stats
1. Commits: 27,854 (+171)
2. Pull Requests: 6,759 (+38)
3. Contributors: 206 (+1)
4. Fork: 261 (+1)
5. Stars: 143
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 - 182 by Mohammad S Anwar
.
PERL REVIEW
Please check out Perl solutions review of The Weekly Challenge - 176 by Colin Crain
.
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
Branislav Zahradnik, an expert Perl
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 #182.
Please find past solutions by respected guests. Please share your creative solutions in other languages.
Task 1: Unique Array
Submitted by: Mohammad S Anwar
You are given list of arrayrefs.
Write a script to remove the duplicate arrayrefs from the given list.
Example 1
Input: @list = ([1,2], [3,4], [5,6], [1,2])
Output: ([1,2], [3,4], [5,6])
Example 2
Input: @list = ([9,1], [3,7], [2,5], [2,5])
Output: ([9, 1], [3,7], [2,5])
Task 2: Date Difference
Submitted by: Mohammad S Anwar
You are given two dates, $date1
and $date2
in the format YYYY-MM-DD
.
Write a script to find the difference between the given dates in terms on years
and days
only.
Example 1
Input: $date1 = '2019-02-10'
$date2 = '2022-11-01'
Output: 3 years 264 days
Example 2
Input: $date1 = '2020-09-15'
$date2 = '2022-03-29'
Output: 1 year 195 days
Example 3
Input: $date1 = '2019-12-31'
$date2 = '2020-01-01'
Output: 1 day
Example 4
Input: $date1 = '2019-12-01'
$date2 = '2019-12-31'
Output: 30 days
Example 5
Input: $date1 = '2019-12-31'
$date2 = '2020-12-31'
Output: 1 year
Example 6
Input: $date1 = '2019-12-31'
$date2 = '2021-12-31'
Output: 2 years
Example 7
Input: $date1 = '2020-09-15'
$date2 = '2021-09-16'
Output: 1 year 1 day
Example 8
Input: $date1 = '2019-09-15'
$date2 = '2021-09-16'
Output: 2 years 1 day
Last date to submit the solution 23:59 (UK Time) Sunday 25th September 2022.