The Weekly Challenge - 275

Monday, Jun 24, 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: Broken Keys

10. TASK #2: Replace Digits


HEADLINES


Welcome to the Week #275 of The Weekly Challenge.

Thank you, Andrew Shitov, for yet another quality Raku review for Week #273.



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

  Week      Perl       Raku       Blog   
   270       41       24       27   
   271       54       28       26   
   272       54       30       25   
   273       64       34       26   
   274       45       27       17   

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

  Week      Guests       Contributions       Languages   
   270       11       50       18   
   271       12       57       18   
   272       14       69       22   
   273       17       82       20   
   274       12       58       16   

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     (2598)
 2. Ruby       (697)
 3. Haskell    (680)
 4. Rust       (663)
 5. Lua        (616)
 6. C          (551)
 7. C++        (518)
 8. JavaScript (433)
 9. Go         (380)
10. BQN        (336)

Blogs with Creative Title


1. Concerning Goats and Buses by Andrew Schneider.

2. Goat Bus by Arne Sommer.

3. Waiting at the Bus Stop by Bob Lied.

4. On the Goat Route by Jorg Sommrey.

5. not understood by Luca Ferrari.

6. These busses got class-maa! by Matthias Muth.

7. Bus Route, Bus Goat, Under My Umbrellamaaaaaaaaaaaa by Packy Anderson.

8. Latin buses by Peter Campbell Smith.

9. Goat on the Bus by Roger Bell_West.

10. Speaking Goat Latin on the fastest bus to town by Simon Green.


GitHub Repository Stats


1. Commits: 38,670 (+91)

2. Pull Requests: 10,295 (+31)

3. Contributors: 246

4. Fork: 311

5. Stars: 173



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 - 274 by Mohammad Sajid Anwar.


PERL REVIEW


If you missed any past reviews then please check out the collection.


RAKU REVIEW


Please checkout Raku solutions review of The Weekly Challenge - 273 by Andrew Shitov.

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

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


Task 1: Broken Keys

Submitted by: Mohammad Sajid Anwar

You are given a sentence, $sentence and list of broken keys @keys.

Write a script to find out how many words can be typed fully.

Example 1

Input: $sentence = "Perl Weekly Challenge", @keys = ('l', 'a')
Output: 0

Example 2

Input: $sentence = "Perl and Raku", @keys = ('a')
Output: 1

Only Perl since the other word two words contain 'a' and can't be typed fully.

Example 3

Input: $sentence = "Well done Team PWC", @keys = ('l', 'o')
Output: 2

Example 4

Input: $sentence = "The joys of polyglottism", @keys = ('T')
Output: 2

Task 2: Replace Digits

Submitted by: Mohammad Sajid Anwar

You are given an alphanumeric string, $str, where each character is either a letter or a digit.

Write a script to replace each digit in the given string with the value of the previous letter plus (digit) places.

Example 1

Input: $str = 'a1c1e1'
Ouput: 'abcdef'

shift('a', 1) => 'b'
shift('c', 1) => 'd'
shift('e', 1) => 'f'

Example 2

Input: $str = 'a1b2c3d4'
Output: 'abbdcfdh'

shift('a', 1) => 'b'
shift('b', 2) => 'd'
shift('c', 3) => 'f'
shift('d', 4) => 'h'

Example 3

Input: $str = 'b2b'
Output: 'bdb'

Example 4

Input: $str = 'a16z'
Output: 'abgz'


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


SO WHAT DO YOU THINK ?

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

Contact with me