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: Max Points
10. TASK #2: Sum Path
HEADLINES
Congratulation birthday boy Laurent Rosenfeld
on becoming the first member with 1000+
score. He has maintained the number #1 position
for the longest period. He is one of the few members associated with us since the beginning. Not many people know that he was our first Raku reviewer.
There is another member, Stuart Little
, who jumped to #12 position
with 368 score in such a short time.
Paulo Custodio
also fast rising the leader board with 84
score in just 2 weeks.
I, once reached #10 position
but have slipped one rank in the recent weeks. Hopefully in the new year 2021, I will try to join the race once again.
This week, we had 15 contributions
by guests in 9
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,681 (+217)
2) Pull Requests: 3,092 (+65)
3) Contributors: 154 (+1)
4) Fork: 194 (+1)
5) Stars: 87
Last but not the least, I would like to thank each and every member for their support and encouragement.
ADVENT CALENDAR
Thanks to each and every member of Team PWC for the contributions. We did it for the second time in a row. It was wonderful experience to re-visit some of the coolest solutions.
Day 01: “Octal Number System / Balanced Brackets” by Jaldhar H. Vyas.
Day 02: “Make it $200” by Ryan Thompson.
Day 03: “LRU Cache” by E. Choroba.
Day 04: “GCD Sum” by Andrew Shitov.
Day 05: “Invert Tree” by Dave Jacoby.
Day 06: “Bit Sum” by Luca Ferarri.
Day 07: “IPv4 Partition” by Javier Luque.
Day 08: “Sort Email Addresses” by Roger Bell_West.
Day 09: “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.
Day 15: “Left Rotation” by Laurent Rosenfeld.
Day 16: “Calling C function” by Yet Ebreo.
Day 17: “Trailing Zeros” by Scimon Proctor.
Day 18: “Collatz Conjecture” by Kevin Colyer.
Day 19: “Head to Taill Pokemon names” by Duncan C. White.
Day 20: “Ackermann function” by Yozen Fernandez.
Day 21: “Guest house lights” by Saif Ahmed.
Day 22: “Is the room open?” by Noud Aldenhoven.
Day 23: “Insert Interval” by James Smith.
Day 24: “Leader Elements” by Mohammad S Anwar.
RECAP
Quick recap of the “The Weekly Challenge - 092” by Mohammad S Anwar
.
PERL REVIEW
Please checkout Perl solutions review of the “Perl Weekly Challenge - 090” 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
Phillip Hartfield Sr from Waldron AR USA.
I use Perl, Mod_Perl, Apache, PostgreSQL, jQuery, Bootstrap, and jQueryUI.
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) Laurent Rosenfeld shared solutions to Task #1 and Task #2 in Scala.
2) Mohammad Meraj Zia shared solution to Task #1 in Java.
3) Nuno Vieira shared solutions to Task #1 and Task #2 in JavaScript.
4) Roger Bell_West shared solutions to Task #1 and Task #2 in Python.
5) Roger Bell_West shared solutions to Task #1 and Task #2 in Ruby.
6) Roger Bell_West shared solutions to Task #1 and Task #2 in Rust.
7) Tyler Wardhaugh shared solutions to Task #1 and Task #2 in Clojure.
8) Ulrich Rieke shared solution to Task #1 in C++.
9) 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 › Max Points
Submitted by: Mohammad S Anwar
You are given set of co-ordinates @N
.
Write a script to count maximum points on a straight line when given co-ordinates plotted on 2-d plane.
Example 1:
|
| x
| x
| x
+ _ _ _ _
Input: (1,1), (2,2), (3,3)
Output: 3
Example 2:
|
|
| x x
| x
| x x
+ _ _ _ _ _
Input: (1,1), (2,2), (3,1), (1,3), (5,3)
Output: 3
TASK #2 › Sum Path
Submitted by: Mohammad S Anwar
You are given binary tree containing numbers 0-9
only.
Write a script to sum all possible paths from root to leaf.
Example 1:
Input:
1
/
2
/ \
3 4
Output: 13
as sum two paths (1->2->3) and (1->2->4)
Example 2:
Input:
1
/ \
2 3
/ / \
4 5 6
Output: 26
as sum three paths (1->2->4), (1->3->5) and (1->3->6)
Last date to submit the solution 23:59 (UK Time) Sunday 3rd January 2021.