The Weekly Challenge - 229

Sunday, Aug 6, 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: Lexicographic Order

10. TASK #2: Two out of Three


HEADLINES


Welcome to the Week #229 of The Weekly Challenge.

This week challenge is coming from my native town, Jamshedpur, India.

Today is the first Monday of the month and time to declare our next champion. Our next champion, Mariano Spadaccini, is from Italy, an experienced Perl hacker. He joined the Team PWC in the Week #201. As of today he has contributed 28 Perl solutions.

Winners of FREE coupon for ebook, Learning Perl Exercises by brian d foy.

  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.  Pip Stuart
25.  Roger Bell_West 26.  Flavio Poletti
27.  Dave Jacoby 28.  Mariano Spadaccini
29.  Lubos Kolouch 30.  Matthew Neleigh
31.  Paulo Custodio 32.  Tyler Bird
33.  Carlos Oliveira 34.  Avery Adams
35.  Matthias Muth 36.  Leo Manfredi
37.  Peter Meszaros 38.  Arne Sommer
39.  Jaldhar H. Vyas 40.  Mark Anderson
41.  Rob Turner 42.  BarrOff
43.  Robert Ransbottom 44.  Andreas Voegele
45.  Jan Krnavek 46.  Steven Wilson
47.  Bruce Gray 48.  PokGoPun
49.  Luca Ferrari 50.  Stephen G. Lynn

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

  Week      Perl       Raku       Blog   
   224       38       21       15   
   225       56       31       24   
   226       59       32       25   
   227       53       30       26   
   228       58       28       24   

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

  Week      Guests       Contributions       Languages   
   224       08       32       13   
   225       13       63       21   
   226       13       52       14   
   227       09       36       11   
   228       15       57       18   

TOP 10 Guest Languages


JavaScript kicked Java out of the Top 10 list last week.

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     (1707)
 2. Haskell    (572)
 3. Ruby       (559)
 4. Lua        (497)
 5. C          (433)
 6. Rust       (408)
 7. C++        (394)
 8. BQN        (303)
 9. Go         (260)
10. JavaScript (239)

Blogs with Creative Title


1. Uniquely Empty by Arne Sommer.

2. Get Sum by Dave Jacoby.

3. Sums and Swaps by Luca Ferrari.

4. Add up the singletons and clear out the list by Peter Campbell Smith.

5. The Empty Sum by Roger Bell_West.


GitHub Repository Stats


1. Commits: 33,616 (+113)

2. Pull Requests: 8,501 (+40)

3. Contributors: 227

4. Fork: 288

5. Stars: 162 (+2)



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

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


Task 1: Lexicographic Order

Submitted by: Mohammad S Anwar

You are given an array of strings.

Write a script to delete element which is not lexicographically sorted (forwards or backwards) and return the count of deletions.

Example 1

Input: @str = ("abc", "bce", "cae")
Output: 1

In the given array "cae" is the only element which is not lexicographically sorted.

Example 2

Input: @str = ("yxz", "cba", "mon")
Output: 2

In the given array "yxz" and "mon" are not lexicographically sorted.

Task 2: Two out of Three

Submitted by: Mohammad S Anwar

You are given three array of integers.

Write a script to return all the elements that are present in at least 2 out of 3 given arrays.

Example 1

Input: @array1 = (1, 1, 2, 4)
       @array2 = (2, 4)
       @array3 = (4)
Ouput: (2, 4)

Example 2

Input: @array1 = (4, 1)
       @array2 = (2, 4)
       @array3 = (1, 2)
Ouput: (1, 2, 4)


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


SO WHAT DO YOU THINK ?

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

Contact with me