The Weekly Challenge - 233

Monday, Sep 4, 2023| 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: Similar Words

10. TASK #2: Frequency Sort


HEADLINES


Welcome to the Week #233 of The Weekly Challenge.

Let us all welcome two new members, Clifton Wood and Macy TY to the Team PWC.

Today is the first Monday of the month and we have a new champion, BarrOff. He joined the Team PWC in the Week #204. As of today, he has contributed 22 Perl, 47 Raku and 2 blogs.

You must be wondering where is the Week #232 challenge?

Well, it is entirely my fault that you all missed the fun last week.

It was a very terrible week for me as I landed back home from India with lots of viruses. Initially I suspected COVID but it turned out to be false alarm, thank GOD. Whatever it was, it brought me down completely and made me bedridden all week. Even while I am typing this, I am not fully recovered but I couldn’t let another week go without action.

I would like to thank everyone for asking me about my health and offered help. You have been a great support throughout the journey of this weekly challenge. A lots of new members coming up with interesting ideas and sharing with me. So thank you for all the ideas. Please excuse me if I don’t act straight away. Let me get back to my legs fully first.

I noticed, Week #231 became the second most active week in the history of weekly challenge with total 137 contributions and 83 guest contributions. Thank you Team PWC for the contributions.

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

  Week      Perl       Raku       Blog   
   227       53       30       26   
   228       58       28       24   
   229       57       30       24   
   230       62       32       25   
   231       68       38       31   

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

  Week      Guests       Contributions       Languages   
   227       09       36       11   
   228       15       57       18   
   229       13       55       17   
   230       15       54       20   
   231       18       83       24   

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     (1781)
 2. Haskell    (580)
 3. Ruby       (575)
 4. Lua        (510)
 5. C          (437)
 6. Rust       (420)
 7. C++        (400)
 8. BQN        (305)
 9. Go         (268)
10. JavaScript (253)

Blogs with Creative Title


1. Not the MinMax Count by Adam Russell.

2. Citizens Max by Arne Sommer.

3. Not Going to Extremes but Accepting Senior Citizens by Avery Adams.

4. A Lot to Unpack Here by Bob Lied.

5. New New Solutions by Dave Jacoby.

6. min, max and regexp! by Luca Ferrari.

7. Min and Max and Senior by Matthias Muth.

8. Min/Maxing your Senior Citizens by Packy Anderson.

9. Middle aged and oldies by Peter Campbell Smith.

10. Max Citizens by Roger Bell_West.


GitHub Repository Stats


1. Commits: 34,008 (+161)

2. Pull Requests: 8,627 (+47)

3. Contributors: 227

4. Fork: 288 (+1)

5. Stars: 162



Our solo sponsor Pete Sergeant has been a great support to keep us motivated. We are lucky that he agreed to continue the journey with us in the year 2023. I would like to personally thank Pete and his entire team for their generosity. It would be great if we could add few more to sponsor the prize money so that we could go back and declare weekly champions as we have done in the past. I hope and wish this will become possible in 2023. The amount doesn’t have to be huge. However, it would be nice to show off bunch of supporters. If an organisation comes forward and supports us then that would be the ultimate achievement.


RECAP


Quick recap of The Weekly Challenge - 231 by Mohammad S 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. Clifton Wood, an expert Raku hacker joined the Team PWC.

2. Macy TY, an expert JavaScript hacker joined the 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 #231.

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


Task 1: Similar Words

Submitted by: Mohammad S Anwar

You are given an array of words made up of alphabets only.

Write a script to find the number of pairs of similar words. Two words are similar if they consist of the same characters.

Example 1

Input: @words = ("aba", "aabb", "abcd", "bac", "aabc")
Output: 2

Pair 1: similar words ("aba", "aabb")
Pair 2: similar words ("bac", "aabc")

Example 2

Input: @words = ("aabb", "ab", "ba")
Output: 3

Pair 1: similar words ("aabb", "ab")
Pair 2: similar words ("aabb", "ba")
Pair 3: similar words ("ab", "ba")

Example 3

Input: @words = ("nba", "cba", "dba")
Output: 0

Task 2: Frequency Sort

Submitted by: Mohammad S Anwar

You are given an array of integers.

Write a script to sort the given array in increasing order based on the frequency of the values. If multiple values have the same frequency then sort them in decreasing order.

Example 1

Input: @ints = (1,1,2,2,2,3)
Ouput: (3,1,1,2,2,2)

'3' has a frequency of 1
'1' has a frequency of 2
'2' has a frequency of 3

Example 2

Input: @ints = (2,3,1,3,2)
Ouput: (1,3,3,2,2)

'2' and '3' both have a frequency of 2, so they are sorted in decreasing order.

Example 3

Input: @ints = (-1,1,-6,4,5,-6,1,4,1)
Ouput: (5,-1,4,4,-6,-6,1,1,1)


Last date to submit the solution 23:59 (UK Time) Sunday 10th September 2023.


SO WHAT DO YOU THINK ?

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

Contact with me