The Weekly Challenge - 201

Monday, Jan 23, 2023| 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: Missing Number

10. TASK #2: Penny Piles


HEADLINES


Welcome to the Week #201 of The Weekly Challenge.

Last week, Mariano Spadaccini, joined the Team PWC. Thank you for your first contributions in Perl.

Apology for the late acceptance of your contributions last week. I wasn’t mentally there, so avoided the screen as much as I can. I have had plenty of messages which I would reply individually soon. Your messages means a lot and I do read them all. I like one-2-one style conversation with the team members.

Some members offered helping hands, I would like to take this opportunity to than each one of them. For now, I am good but will definitely come back to you if I need any assistance.

Today, we are giving away Coupon #24 to Pip Stuart for the book, Learning Perl Exercises by brian d foy. I will share the details with you in a separate email.

PAST WINNERS

  S. No.    Name S. No.  Name
1.  Cheok-Yin Fung 2.  W. Luis Mochan
3.  Robert DiCicco 4.  Kueppo Wesley
5.  Solathian 6.  Dario Mazzeo
7.  Peter Campbell Smith   8.  Kjetil Skotheim
9.  Neils van Dijke 10.  Laurent Rosenfeld  
11.  Duncan C. White 12.  Ali Moradi
13.  Jorg Sommrey 14.  James Smith
15.  Alexander Pankoff 16.  Simon Green
17.  Robbie Hatley 18.  Bob Lied
19.  Athanasius 20.  David Ferrone
21.  Thomas Kohler 22.  Adam Russell
23.  E. Choroba 24.
25. 26.
27. 28.
29. 30.
31. 32.
33. 34.
35. 36.
37. 38.
39. 40.
41. 42.
43. 44.
45. 46.
47. 48.
49. 50.

The Week #200 is celebrated with 100+ contributions by Team PWC members. Thank you Team PWC.

  Week      Perl       Raku       Blog   
   184       57       31       17   
   185       61       35       19   
   186       58       33       20   
   187       51       34       20   
   188       63       36       16   
   189       62       35       18   
   190       55       32       23   
   191       56       38       21   
   192       59       41       23   
   193       55       31       22   
   194       58       32       19   
   195       58       29       19   
   196       51       29       20   
   197       49       31       20   
   198       54       37       23   
   199       52       32       22   
   200       55       33       23   

I would like to thank every guest contributors for making it special every week. Last week we received 28 guest contributions in 12 languages.


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  (1285)
 2. Haskell (526)
 3. Ruby    (452)
 4. Lua     (437)
 5. C       (315)
 6. C++     (311)
 7. Rust    (299)
 8. BQN     (267)
 9. Go      (234)
10. Java    (215)

Blogs with Creative Title


1. Seven Angry Slices by Arne Sommer.

2. Seven Segments to Midnight by Colin Crain.

3. Bicent-Weekly Solution by Dave Jacoby.

4. not optimal! by Luca Ferrari.

5. Slicing and dicing a double century by Peter Campbell Smith.

6. Seven Slices by Roger Bell_West.

7. Two hundred slices by Simon Green.


GitHub Repository Stats


1. Commits: 30,320 (+93)

2. Pull Requests: 7,446 (+33)

3. Contributors: 216 (+1)

4. Fork: 274

5. Stars: 151 (+1)



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 - 200 by Mohammad S 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


Mariano Spadaccini, an experienced 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 #200.

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


Task 1: Missing Numbers

Submitted by: Mohammad S Anwar

You are given an array of unique numbers.

Write a script to find out all missing numbers in the range 0..$n where $n is the array size.


Example 1

Input: @array = (0,1,3)
Output: 2

The array size i.e. total element count is 3, so the range is 0..3.
The missing number is 2 in the given array.

Example 2

Input: @array = (0,1)
Output: 2

The array size is 2, therefore the range is 0..2.
The missing number is 2.

Task 2: Penny Piles

Submitted by: Robbie Hatley

You are given an integer, $n > 0.

Write a script to determine the number of ways of putting $n pennies in a row of piles of ascending heights from left to right.

Example

Input: $n = 5
Output: 7

Since $n=5, there are 7 ways of stacking 5 pennies in ascending piles:

    1 1 1 1 1
    1 1 1 2
    1 2 2
    1 1 3
    2 3
    1 4
    5


Last date to submit the solution 23:59 (UK Time) Sunday 29th January 2023.


SO WHAT DO YOU THINK ?

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

Contact with me