The Weekly Challenge - 256

Monday, Feb 12, 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: Maximum Pairs

10. TASK #2: Merge Strings


HEADLINES


Welcome to the Week #256 of The Weekly Challenge.


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

  Week      Perl       Raku       Blog   
   251       51       33       23   
   252       54       35       23   
   253       53       29       25   
   254       53       32       26   
   255       55       30       26   

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

  Week      Guests       Contributions       Languages   
   251       16       53       16   
   252       19       72       22   
   253       17       60       19   
   254       17       62       20   
   255       17       60       18   

TOP 10 Guest Languages


Last week, we saw movement in the ranking, JavaScript moved up one place to the rank #9. Congratulations all JavaScript contributors.

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     (2202)
 2. Ruby       (650)
 3. Haskell    (631)
 4. Lua        (576)
 5. Rust       (522)
 6. C          (479)
 7. C++        (478)
 8. Go         (325)
 9. JavaScript (317)
10. BQN        (315)

Blogs with Creative Title


1. Mostly Odd by Arne Sommer.

2. Preel Weeakly by Dave Jacoby.

3. Frequent Oddities by Jorg Sommrey.

4. Banned Words and Exceeding Letters by Luca Ferrari.

5. Odd Char Seems to be the Most Frequent Word by Packy Anderson.

6. An odd character’s nearly best word by Peter Campbell Smith.

7. Most Frequently Odd Character by Roger Bell_West.

8. The most odd thing by Simon Green.


GitHub Repository Stats


1. Commits: 36,544 (+117)

2. Pull Requests: 9,548 (+45)

3. Contributors: 243

4. Fork: 306

5. Stars: 167



In the year 2024, we are looking for new sponsor for monthly 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 - 255 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 #255.

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


Task 1: Maximum Pairs

Submitted by: Mohammad Sajid Anwar

You are given an array of distinct words, @words.

Write a script to find the maximum pairs in the given array. The words $words[i] and $words[j] can be a pair one is reverse of the other.

Example 1

Input: @words = ("ab", "de", "ed", "bc")
Output: 1

There is one pair in the given array: "de" and "ed"

Example 2

Input: @words = ("aa", "ba", "cd", "ed")
Output: 0

Example 3

Input: @words = ("uv", "qp", "st", "vu", "mn", "pq")
Output: 2

Task 2: Merge Strings

Submitted by: Mohammad Sajid Anwar

You are given two strings, $str1 and $str2.

Write a script to merge the given strings by adding in alternative order starting with the first string. If a string is longer than the other then append the remaining at the end.

Example 1

Input: $str1 = "abcd", $str2 = "1234"
Output: "a1b2c3d4"

Example 2

Input: $str1 = "abc", $str2 = "12345"
Output: "a1b2c345"

Example 3

Input: $str1 = "abcde", $str2 = "123"
Output: "a1b2c3de"


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


SO WHAT DO YOU THINK ?

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

Contact with me