The Weekly Challenge - 273

Monday, Jun 10, 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: Percentage of Character

10. TASK #2: B After A


HEADLINES


Welcome to the Week #273 of The Weekly Challenge.

Let us all welcome two new members, Chazzka and Santiago Leyva.

Chazzka in the first week shared solution in Coconut.

Santiago Levya shared solution in Perl in the very first week.

Also recently joined member, Andrew Schneider shared solutions in C, Prolog and Racket this week (his second week).

E. Choroba, one of the regular contributors, shared very interesting blog post. I would highly recommend you must check out.

Welcome back, Adam Russell. Thanks for your contributions in Perl and engaging blog post.



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

  Week      Perl       Raku       Blog   
   268       48       31       26   
   269       44       30       24   
   270       41       24       27   
   271       54       28       26   
   272       54       30       25   

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

  Week      Guests       Contributions       Languages   
   268       15       75       26   
   269       13       78       24   
   270       11       50       18   
   271       12       57       18   
   272       14       69       22   

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     (2561)
 2. Ruby       (692)
 3. Haskell    (674)
 4. Rust       (649)
 5. Lua        (612)
 6. C          (545)
 7. C++        (512)
 8. JavaScript (425)
 9. Go         (369)
10. BQN        (336)

Blogs with Creative Title


1. Defang and Sum-Abs-Char-Diffs by Andrew Schneider.

2. Defanged and Scored by Adam Russell.

3. IP Score by Arne Sommer.

4. Defang the Snake Fixated at the Score by Jorg Sommrey.

5. Quick and Simple by Luca Ferrari.

6. A Half Liner and a Full One by Matthias Muth.

7. Defanged Addresses & String Scores by Packy Anderson.

8. Fangs and strings by Peter Campbell Smith.

9. Score the Defranged Strings by Roger Bell_West.


GitHub Repository Stats


1. Commits: 38,464 (+112)

2. Pull Requests: 10,232 (+51)

3. Contributors: 246 (+2)

4. Fork: 311 (+1)

5. Stars: 172



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


1. Chazzka, an experienced hacker joined the Team PWC.

2. Santiago Leyva. an experienced Perl hacker from South America 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 #272.

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


Task 1: Percentage of Character

Submitted by: Mohammad Sajid Anwar

You are given a string, $str and a character $char.

Write a script to return the percentage, nearest whole, of given character in the given string.

Example 1

Input: $str = "perl", $char = "e"
Output: 25

Example 2

Input: $str = "java", $char = "a"
Output: 50

Example 3

Input: $str = "python", $char = "m"
Output: 0

Example 4

Input: $str = "ada", $char = "a"
Output: 67

Example 5

Input: $str = "ballerina", $char = "l"
Output: 22

Example 6

Input: $str = "analitik", $char = "k"
Output: 13

Task 2: B After A

Submitted by: Mohammad Sajid Anwar

You are given a string, $str.

Write a script to return true if there is at least one b, and no a appears after the first b.

Example 1

Input: $str = "aabb"
Output: true

Example 2

Input: $str = "abab"
Output: false

Example 3

Input: $str = "aaa"
Output: false

Example 4

Input: $str = "bbb"
Output: true


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


SO WHAT DO YOU THINK ?

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

Contact with me