The Weekly Challenge - 100

Monday, Feb 15, 2021| Tags: Perl, Raku

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: Fun Time

10. TASK #2: Triangle Sum


HEADLINES



The wait is over today finally and here we enter into the 100th week of The Weekly Challenge.

There are plenty of happy stories to share with the team.

I still remember the day I started the journey, it was just me. The first helping hand was offered by Kian-Meng Ang. She helped me with the Perl Reviews, followed by Laurent Rosenfeld doing Raku Reviews. Then there was little pause before Ryan Thompson helped with Perl and Raku reviews. We had another pause before Andrew Shitov helped with Raku reviews and Colin Crain helped with Perl reviews. As of today, Colin is still helping with Perl reviews while we are still looking for Raku reviewer.

Please find below review stats as of today:

Perl Reviews

1. Kian-Meng Ang: 33

2. Colin Crain: 30

3. Ryan Thompson: 12

4. Mohammad S Anwar: 3



Raku Reviews

1. Laurent Rosenfeld: 37

2. Andrew Shitov: 18

3. Ryan Thompson: 4



Champions of The Weekly Challenge

1. Laurent Rosenfeld

2. Jaldhar H. Vyas

3. Joelle Maslak

4. Adam Russell

5. Yozen Hernandez

6. E. Choroba

7. Arne Sommer

8. Duncan C. White

9. Ruben Westerberg

10. Kian-Meng Ang

11. Athanasius

12. Lubos Kolouch

13. Yet Ebreo

14. Roger Bell_West

15. Scimon Proctor

16. Andrezgz

17. Dave Jacoby

18. Kevin Colyer

19. Mark Senn

20. Prajith P.

21. Ulrich Rieke

22. Burkhard Nickels

23. Steven Wilson

24. Duane Powell

25. Javier Luque

26. Ryan Thompson

27. Colin Crain

28. Noud Aldenhoven

29. Markus Holzer

30. Wanderdoc

31. Saif Ahmed

31. Alicia Bielsa

31. Luca Ferarri

31. Shahed Nooshmand

31. Mark Anderson

31. Walt Mankowski

31. Cheok-Yin Fung

31. Myoungjin Jeon

31. Andrew Shitov

31. Simon Green

31. Niels van Dijke

32. Stuart Little



Apart from the above Champions, we decided to award the following Team PWC members in the first year 2019-20. With the help of current and past reviewers nominations. Believe it or not, it was the most difficult decision to pick a name. To me every member is a winner.


PWC Prolific Contributor Award (Perl)

1. Joelle Maslak

2. E. Choroba

3. Jaldhar H. Vyas



PWC Prolific Contributor Award (Raku)

1. Jan Krnavek

2. Markus Holzer

3. Athanasius



PWC Outstanding Blogger Award (Perl)

1. Roger Bell_West

2. Colin Crain

3. Abigail



PWC Outstanding Blogger Award (Raku)

1. Laurent Rosenfeld

2. Arne Sommer

3. Javier Luque



PWC Prolific Guest Award

1. Tyler Wardhaugh (Clojure, Lua, Python)

2. Stuart Little (Haskell)

3. Paulo Custodio (Ada, Awk, Basic, C, C++, Forth, Lua, Python)



Next month, we would declare another set of winners for the year 2020-21 to celebrate the completion of 2 years weekly challenge.


Contributions Summary

This week, we received 45 contributions from guests in 17 languages.

I would like to THANK each and every guest contributors.


Languages Summary


While we are talking about contributions, let’s share some interesting stats from the GitHub repository.

1. Commits: 14,250 (+183)

2. Pull Requests: 3,520 (+47)

3. Contributors: 158

4. Fork: 199

5. Stars: 90


Last but not least, I would like to thank each and every member for their support and encouragement.



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 2021. 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 2021. 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 “The Weekly Challenge - 099” by Mohammad S Anwar.


PERL REVIEW


Please check out Perl solutions review of the “Perl Weekly Challenge - 097” 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


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


01. Cristina Heredia shared solution to Task #1 in Python.

02. Jonas Berlin shared solution to Task #1 in Rust.

03. Mohammad Meraj Zia shared solution to Task #1 in Java.

04. Mohammad Meraj Zia shared solution to Task #1 in Kotlin.

05. Nuno Vieira shared solutions to Task #1 and Task #2 in JavaScript.

06. Paulo Custodio shared solutions to Task #1 and Task #2 in Ada.

07. Paulo Custodio shared solutions to Task #1 and Task #2 in Awk.

08. Paulo Custodio shared solutions to Task #1 and Task #2 in Basic.

09. Paulo Custodio shared solutions to Task #1 and Task #2 in C.

10. Paulo Custodio shared solutions to Task #1 and Task #2 in C++.

11. Paulo Custodio shared solutions to Task #1 and Task #2 in Forth.

12. Paulo Custodio shared solutions to Task #1 and Task #2 in Lua.

13. Paulo Custodio shared solutions to Task #1 and Task #2 in Python.

14. Stuart Little shared solutions to Task #1 and Task #2 in Haskell.

15. Roger Bell_West shared solutions to Task #1 and Task #2 in Python.

16. Roger Bell_West shared solutions to Task #1 and Task #2 in Ruby.

17. Roger Bell_West shared solutions to Task #1 and Task #2 in Rust.

18. Tyler Wardhaugh shared solutions to Task #1 and Task #2 in Clojure.

19. Tyler Wardhaugh shared solutions to Task #1 and Task #2 in Lua.

20. Tyler Wardhaugh shared solutions to Task #1 and Task #2 in Python.


Please find past solutions by respected guests. Please share your creative solutions in other languages.


TASK #1 › Fun Time

Submitted by: Mohammad S Anwar

You are given a time (12 hour / 24 hour).

Write a script to convert the given time from 12 hour format to 24 hour format and vice versa.

Ideally we expect a one-liner.

Example 1:

Input: 05:15 pm or 05:15pm
Output: 17:15

Example 2:

Input: 19:15
Output: 07:15 pm or 07:15pm


TASK #2 › Triangle Sum

Submitted by: Mohammad S Anwar

You are given triangle array.

Write a script to find the minimum path sum from top to bottom.

When you are on index i on the current row then you may move to either index i or index i + 1 on the next row.

Example 1:

Input: Triangle = [ [1], [2,4], [6,4,9], [5,1,7,2] ]
Output: 8

Explanation: The given triangle

            1
           2 4
          6 4 9
         5 1 7 2

The minimum path sum from top to bottom:  1 + 2 + 4 + 1 = 8

             [1]
           [2]  4
           6 [4] 9
          5 [1] 7 2

Example 2:

Input: Triangle = [ [3], [3,1], [5,2,3], [4,3,1,3] ]
Output: 7

Explanation: The given triangle

            3
           3 1
          5 2 3
         4 3 1 3

The minimum path sum from top to bottom: 3 + 1 + 2 + 1 = 7

             [3]
            3  [1]
           5 [2] 3
          4 3 [1] 3


Last date to submit the solution 23:59 (UK Time) Sunday 21st February 2021.


SO WHAT DO YOU THINK ?

If you have any suggestions or ideas then please do share with us.

Contact with me