The Weekly Challenge - 280

Monday, Jul 29, 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: Twice Appearance

10. TASK #2: Count Asterisks


HEADLINES


Welcome to the Week #280 of The Weekly Challenge.

Let us all welcome two new guest contributors, Tymoteusz Moryto and Richard Loveland to Team PWC.

Thank you, Tymoteusz, for sharing solution to Task #1 and Task #2 in Uiua.

Thank you, Richard, for introducing a new programming language K and sharing solutions to Task #1 and Task #2.

Welcome back, Andrezgz and thanks for sharing solutions to Task #1 and Task #2 in Perl.

I would also like to thank Kjetil Skotheim for sharing solutions to the Week #274.

Did you notice new language breakdown chart added to the charts page?

We now have contributions breakdown per year. Please find below some interesting data.


    | Year | Total | Perl | Raku | Blog |
    -------------------------------------
    | 2019 | 3511  | 1959 | 1100 | 452  |
    | 2020 | 5187  | 2689 | 1718 | 780  |
    | 2021 | 4976  | 2663 | 1392 | 921  |
    | 2022 | 5371  | 2761 | 1600 | 1010 |
    | 2023 | 5624  | 2979 | 1630 | 1197 |
    | 2024 | 3240  | 1584 | 920  | 736  |

Year 2024 stats is as of today i.e. 2024-07-29.


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

  Week      Perl       Raku       Blog   
   275       51       25       23   
   276       62       32       27   
   277       66       30       29   
   278       57       28       24   
   279       56       28       16   

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

  Week      Guests       Contributions       Languages   
   275       14       60       19   
   276       16       74       21   
   277       16       53       18   
   278       13       68       21   
   279       16       66       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     (2672)
 2. Ruby       (711)
 3. Haskell    (695)
 4. Rust       (690)
 5. Lua        (626)
 6. C          (567)
 7. C++        (528)
 8. JavaScript (457)
 9. Go         (390)
10. BQN        (352)

Blogs with Creative Title


1. Weighted Letters and Even Chars by Andrew Schneider.

2. Sort of Again by Arne Sommer.

3. Neither Sort Nor Split by Jorg Sommrey.

4. More Weight for Examples! by Matthews Muth.

5. Split ‘em away! by Packy Anderson.

6. Scrambled and split by Peter Campbell Smith.

7. Split and Sort Strings of Letters by Roger Bell_West.


GitHub Repository Stats


1. Commits: 39,213 (+112)

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

3. Contributors: 250 (+1)

4. Fork: 315 (+1)

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 - 279 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


Tymoteusz Moryto, an expert Uiua hacker joined Team PWC.

Richard Loveland, an expert K hacker joined 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 #279.

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


Task 1: Twice Appearance

Submitted by: Mohammad Sajid Anwar

You are given a string, $str, containing lowercase English letters only.

Write a script to print the first letter that appears twice.

Example 1

Input: $str = "acbddbca"
Output: "d"

Example 2

Input: $str = "abccd"
Output: "c"

Example 3

Input: $str = "abcdabbb"
Output: "a"

Task 2: Count Asterisks

Submitted by: Mohammad Sajid Anwar

You are given a string, $str, where every two consecutive vertical bars are grouped into a pair.

Write a script to return the number of asterisks, *, excluding any between each pair of vertical bars.

Example 1

Input: $str = "p|*e*rl|w**e|*ekly|"
Ouput: 2

The characters we are looking here are "p" and "w**e".

Example 2

Input: $str = "perl"
Ouput: 0

Example 3

Input: $str = "th|ewe|e**|k|l***ych|alleng|e"
Ouput: 5

The characters we are looking here are "th", "e**", "l***ych" and "e".


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


SO WHAT DO YOU THINK ?

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

Contact with me