The Weekly Challenge - 279

Sunday, Jul 21, 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 Letters

10. TASK #2: Split String


HEADLINES


Welcome to the Week #279 of The Weekly Challenge.

Thank you, Cheok-Yin Fung, for sharing contributions in Lisp for [Week #258 | Week #271 | Week #273 | Week #278].

Welcome back, Lance Wicks, and thanks for sharing solution to Task #1 in Perl.

Congratulation to Laurent Rosenfeld for being Rank #1 contributor with total score of 2744. The total contributions as of today:

 1. Perl: 491
 2. Raku: 505
 3. Blog: 376

Congratulation to Roger Bell_West for being Rank #1 guest contributor with total contributions 2296 as of today:

 1. Bash      : 1
 2. Crystal   : 20
 3. JavaScript: 251
 4. Kotla     : 256
 5. Lua       : 246
 6. PostScript: 294
 7. Python    : 391
 8. Ruby      : 379
 9. Rust      : 373
10. Scala     : 85


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

  Week      Perl       Raku       Blog   
   274       45       27       17   
   275       51       25       23   
   276       62       32       27   
   277       66       30       29   
   278       57       28       24   

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

  Week      Guests       Contributions       Languages   
   274       12       58       16   
   275       14       60       19   
   276       16       74       21   
   277       16       53       18   
   278       13       68       21   

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     (2658)
 2. Ruby       (707)
 3. Haskell    (688)
 4. Rust       (687)
 5. Lua        (624)
 6. C          (565)
 7. C++        (526)
 8. JavaScript (451)
 9. Go         (388)
10. BQN        (350)

Blogs with Creative Title


1. Sginrt and droW by Andrew Schneider.

2. Sort of Reverse by Arne Sommer.

3. Split, Sort and Join by Jorg Sommrey.

4. CHALLENGES (almost) IN A ROW! by Luca Ferrari.

5. Word Reverse String Sort by Packy Anderson.

6. Tangled string and drow by Peter Campbell Smith.

7. Reverse the Sort in Strings of Words by Roger Bell_West.


GitHub Repository Stats


1. Commits: 39,101 (+102)

2. Pull Requests: 10,452 (+37)

3. Contributors: 249

4. Fork: 314

5. Stars: 174



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

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


Task 1: Sort Letters

Submitted by: Mohammad Sajid Anwar

You are given two arrays, @letters and @weights.

Write a script to sort the given array @letters based on the @weights.

Example 1

Input: @letters = ('R', 'E', 'P', 'L')
       @weights = (3, 2, 1, 4)
Output: PERL

Example 2

Input: @letters = ('A', 'U', 'R', 'K')
       @weights = (2, 4, 1, 3)
Output: RAKU

Example 3

Input: @letters = ('O', 'H', 'Y', 'N', 'P', 'T')
       @weights = (5, 4, 2, 6, 1, 3)
Output: PYTHON

Task 2: Split String

Submitted by: Mohammad Sajid Anwar

You are given a string, $str.

Write a script to split the given string into two containing exactly same number of vowels and return true if you can otherwise false.

Example 1

Input: $str = "perl"
Ouput: false

Example 2

Input: $str = "book"
Ouput: true

Two possible strings "bo" and "ok" containing exactly one vowel each.

Example 3

Input: $str = "good morning"
Ouput: true

Two possible strings "good " and "morning" containing two vowels each or "good m" and "orning" containing two vowels each.


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


SO WHAT DO YOU THINK ?

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

Contact with me