The Weekly Challenge - 235

Monday, Sep 18, 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: Remove One

10. TASK #2: Duplicate Zeros


HEADLINES


Welcome to the Week #235 of The Weekly Challenge.

I would like to share something that a member of Team PWC has been working on for sometime as listed below:

1. Remove empty dirs

2. Initial proposal for Raku scalability-benchmark


I would appreciate if you all can also contribute with your suggestions and ideas. Thank you rcmlz for all the hard work, much appreciated.

Last 5 weeks mainstream contribution stats. Thank you Team PWC for your support and encouragements.

  Week      Perl       Raku       Blog   
   229       57       30       24   
   230       62       32       25   
   231       68       38       31   
   233       60       35       29   
   234       48       33       23   

Last 5 weeks guest contribution stats. Thank you each and every guest contributors for your time and efforts.

  Week      Guests       Contributions       Languages   
   229       13       55       17   
   230       15       54       20   
   231       18       83       24   
   233       15       59       16   
   234       12       48       15   

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     (1811)
 2. Haskell    (586)
 3. Ruby       (584)
 4. Lua        (516)
 5. C          (437)
 6. Rust       (428)
 7. C++        (405)
 8. BQN        (305)
 9. Go         (272)
10. JavaScript (262)

Blogs with Creative Title


1. Unequally Common by Arne Sommer.

2. Sharing is Caring by Avery Adams.

3. Same Circus, Different Clowns by Bob Lied.

4. Back By Lack of Demand by Dave Jacoby.

5. nested loops by Luca Ferrari.

6. More Frequent Frequencies by Matthias Muth.

7. Common, but Unequal, Triplet Characters by Packy Anderson.

8. Duplicates and triplets by Peter Campbell Smith.

9. Triplets with Character by Roger Bell_West.


GitHub Repository Stats


1. Commits: 34,219 (+95)

2. Pull Requests: 8,704 (+35)

3. Contributors: 230 (+1)

4. Fork: 289 (+1)

5. Stars: 163 (+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 2023. 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 2023. 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 - 234 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


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 #234.

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


Task 1: Remove One

Submitted by: Mohammad S Anwar

You are given an array of integers.

Write a script to find out if removing ONLY one integer makes it strictly increasing order.

Example 1

Input: @ints = (0, 2, 9, 4, 6)
Output: true

Removing ONLY 9 in the given array makes it strictly increasing order.

Example 2

Input: @ints = (5, 1, 3, 2)
Output: false

Example 3

Input: @ints = (2, 2, 3)
Output: true

Task 2: Duplicate Zeros

Submitted by: Mohammad S Anwar

You are given an array of integers.

Write a script to duplicate each occurrence of ZERO in the given array and shift the remaining to the right but make sure the size of array remain the same.

Example 1

Input: @ints = (1, 0, 2, 3, 0, 4, 5, 0)
Ouput: (1, 0, 0, 2, 3, 0, 0, 4)

Example 2

Input: @ints = (1, 2, 3)
Ouput: (1, 2, 3)

Example 3

Input: @ints = (0, 3, 0, 4, 5)
Ouput: (0, 0, 3, 0, 0)


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


SO WHAT DO YOU THINK ?

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

Contact with me