TABLE OF CONTENTS
1. HEADLINES
2. ADVENT CALENDAR
3. RECAP
4. PERL REVIEW
5. RAKU REVIEW
6. CHART
7. NEW MEMBERS
8. GUESTS
9. TASK #1: Isomorphic Strings
10. TASK #2: Insert Interval
HEADLINES
We have 2 new members joining the Team PWC this week, Paulo Custodio
and Mimosinnet
. We now have 211 active members across the globe. It would have been nice to plot the locations in the world map. I have done something similar for my Map::Tube
module. I just have to find the time for the task.
Thank you Colin Crain
for yet another quality reviews. I have had many positive feedbacks from Team PWC members about the same.
Stuart Little
kept me on my toes with his non-stop Raku contributions ever since he joined the team. Proud to have him in the team.
Fortunately, we now have a match for him for Perl and he is the newest member Paulo Custodio. In the first week itself he contributed solutions to Week 89, Week 90 and Week 91.
This week, we had 20 contributions
by guests in 11
different languages. I would like to THANK
each and every guest contributors.
While we are talking about contributions, lets share some interesting stats from the GitHub repository.
1) Commits: 12,464 (+184)
2) Pull Requests: 3,027 (+49)
3) Contributors: 153 (+2)
4) Fork: 193 (+2)
5) Stars: 87 (+2)
Last but not the least, I would like to thank each and every member for their support and encouragement.
ADVENT CALENDAR
This week, I added seven more days i.e. Day 8
, Day 9
, Day 10
, Day 11
, Day 12
, Day 13
and Day 14
to the Advent Calendar 2020.
Day 1: “Octal Number System / Balanced Brackets” by Jaldhar H. Vyas.
Day 2: “Make it $200” by Ryan Thompson.
Day 3: “LRU Cache” by E. Choroba.
Day 4: “GCD Sum” by Andrew Shitov.
Day 5: “Invert Tree” by Dave Jacoby.
Day 6: “Bit Sum” by Luca Ferarri.
Day 7: “IPv4 Partition” by Javier Luque.
Day 8: “Sort Email Addresses” by Roger Bell_West.
Day 9: “Divide Integer” by Arne Sommer.
Day 10: “Trim Linked List” by Walt Mankowski.
Day 11: “Lines Range” by Adam Russell.
Day 12: “Smallest Multiple” by Cheok-Yin Fung.
Day 13: “Majority Element” by Bartosz Jarzyna.
Day 14: “Trapped Rain Water” by Myoungjin Jeon.
RECAP
Quick recap of the “The Weekly Challenge - 091” by Mohammad S Anwar
.
PERL REVIEW
Please checkout Perl solutions review of the “Perl Weekly Challenge - 089” by Colin Crain
.
If you missed any past reviews then please checkout the collection.
RAKU REVIEW
If you missed any past reviews then please checkout 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
1) Paulo Custódio
I have been using Perl on-and-off since Perl 4, and my favourite languages are C/C++ and Perl, I live in Oporto, Portugal. My CPAN authors link is https://metacpan.org/author/PSCUST
2) Mimosinnet
I teach on Social Psychology at Universitat Autònoma de Barcelona and have fun in my spare time coding in Perl.
Please find out How to contribute?, if you have any doubts.
Please give it a try to an excellent tool EZPWC created by respected member Saif Ahmed
of Team PWC.
GUESTS
1) Abigail shared solutions to Task #1 and Task #2 in Node.
2) Laurent Rosenfeld shared solutions to Task #1 and Task #2 in Scala.
3) Nuno Vieira shared solutions to Task #1 and Task #2 in JavaScript.
4) Paulo Custodio shared solutions to Task #1 and Task #2 in Forth.
5) Roger Bell_West shared solutions to Task #1 and Task #2 in Python.
6) Roger Bell_West shared solutions to Task #1 and Task #2 in Ruby.
7) Roger Bell_West shared solutions to Task #1 and Task #2 in Rust.
8) Tyler Wardhaugh shared solutions to Task #1 and Task #2 in Clojure.
9) Tyler Wardhaugh shared solutions to Task #1 and Task #2 in Lua.
10) Ulrich Rieke shared solution to Task #2 in C++.
11) Ulrich Rieke shared solution to Task #1 in Haskell.
Please find out past solutions by respected guests. Please do share your creative solutions in other languages.
TASK #1 › Isomorphic Strings
Submitted by: Mohammad S Anwar
You are given two strings $A
and $B
.
Write a script to check if the given strings are Isomorphic. Print 1 if they are otherwise 0.
Example 1:
Input: $A = "abc"; $B = "xyz"
Output: 1
Example 2:
Input: $A = "abb"; $B = "xyy"
Output: 1
Example 3:
Input: $A = "sum"; $B = "add"
Output: 0
TASK #2 › Insert Interval
Submitted by: Mohammad S Anwar
You are given a set of sorted non-overlapping intervals and a new interval.
Write a script to merge the new interval to the given set of intervals.
Example 1:
Input $S = (1,4), (8,10); $N = (2,6)
Output: (1,6), (8,10)
Example 2:
Input $S = (1,2), (3,7), (8,10); $N = (5,8)
Output: (1,2), (3,10)
Example 3:
Input $S = (1,5), (7,9); $N = (10,11)
Output: (1,5), (7,9), (10,11)
Last date to submit the solution 23:59 (UK Time) Sunday 27th December 2020.