The Weekly Challenge - 278

Monday, Jul 15, 2024| 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: Sort String

10. TASK #2: Reverse Word


HEADLINES


Welcome to the Week #278 of The Weekly Challenge.

I was hoping to see the historical win for England in the final of UEFA Euro 2024. Unfortunately we were outplayed by the energetic Spain. Honestly speaking, Football is the only sport where I wholeheartedly support Team England. And I am still waiting for the day to celebrate the success.

I am aware we do have members from Spain, so many congratulations to all who support the Team Spain for winning the final.

Welcome back Alexander Karelas and thanks for sharing solutions in Perl.

Welcome back Conor Hoekstra and thanks for sharing solutions in BQN for [Week #272], [Week #273], [Week #274], [Week #275], [Week #276] and [Week #277].

I would also like to mention, Marton Polgar for sharing solutions in Prolog.

Thank you, Andrew Schneider, for sharing solutions in Erlang for the first time.

Every week, I get to checkout the contributions by Team PWC members when I prepare the post for Perl Weekly Newsletter. I would highly recommend you to checkout the blog posts. You will find plenty of gems in every blog post. It has been a great source of learning for me. A big THANK YOU to all contributors.

I would also like to remind Laurent Rosenfeld to get back to me with regard to the email about the prize money.



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

  Week      Perl       Raku       Blog   
   273       64       34       26   
   274       45       27       17   
   275       51       25       23   
   276       62       32       27   
   277       66       30       29   

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

  Week      Guests       Contributions       Languages   
   273       17       82       20   
   274       12       58       16   
   275       14       60       19   
   276       16       74       21   
   277       16       53       18   

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     (2644)
 2. Ruby       (703)
 3. Haskell    (686)
 4. Rust       (681)
 5. Lua        (620)
 6. C          (563)
 7. C++        (524)
 8. JavaScript (447)
 9. Go         (386)
10. BQN        (348)

Blogs with Creative Title


1. Count the Common Ones and the Strong Pairs by Andrew Schneider.

2. Strong Count by Arne Sommer.

3. Strength Uncombined by Bruce Gray.

4. Common Strength by Jorg Sommrey.

5. They call me the count, because I love to count pairs! Ah, ah, ah! by Packy Anderson.

6. Commons and pairs by Peter Campbell Smith.

7. A Strong Count by Roger Bell_West.

8. Strong counting by Simon Green.


GitHub Repository Stats


1. Commits: 38,999 (+111)

2. Pull Requests: 10,415 (+41)

3. Contributors: 249 (+1)

4. Fork: 314 (+1)

5. Stars: 174 (+1)



With start of Week #268, we have a new sponsor Lance Wicks for the entire year 2024. Having said we are looking for more sponsors so that we can go back to weekly winner. If anyone interested please get in touch with us at perlweeklychallenge@yahoo.com. Thanks for your support in advance.


RECAP


Quick recap of The Weekly Challenge - 277 by Mohammad Sajid 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 #277.

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


Task 1: Sort String

Submitted by: Mohammad Sajid Anwar

You are given a shuffle string, $str.

Write a script to return the sorted string.

A string is shuffled by appending word position to each word.

Example 1

Input: $str = "and2 Raku3 cousins5 Perl1 are4"
Output: "Perl and Raku are cousins"

Example 2

Input: $str = "guest6 Python1 most4 the3 popular5 is2 language7"
Output: "Python is the most popular guest language"

Example 3

Input: $str = "Challenge3 The1 Weekly2"
Output: "The Weekly Challenge"

Task 2: Reverse Word

Submitted by: Mohammad Sajid Anwar

You are given a word, $word and a character, $char.

Write a script to replace the substring up to and including $char with its characters sorted alphabetically. If the $char doesn’t exist then DON'T do anything.

Example 1

Input: $str = "challenge", $char = "e"
Ouput: "acehllnge"

Example 2

Input: $str = "programming", $char = "a"
Ouput: "agoprrmming"

Example 3

Input: $str = "champion", $char = "b"
Ouput: "champion"


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


SO WHAT DO YOU THINK ?

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

Contact with me