The Weekly Challenge - 276

Monday, Jul 1, 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: Complete Day

10. TASK #2: Maximum Frequency


HEADLINES


Welcome to the Week #276 of The Weekly Challenge.

Today is the first Monday of the month and time to declare the next champion. With great pride, I declare Jaldhar H. Vyas as our next champion for the second time. Thank you for being one of the most consistent contributors.

Just a gently reminder to Laurent Rosenfeld, please get back to me with regard to the email sent on 24th June 2024 about the prize money. Apology for late notification.



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

  Week      Perl       Raku       Blog   
   271       54       28       26   
   272       54       30       25   
   273       64       34       26   
   274       45       27       17   
   275       51       25       23   

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

  Week      Guests       Contributions       Languages   
   271       12       57       18   
   272       14       69       22   
   273       17       82       20   
   274       12       58       16   
   275       14       60       19   

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     (2614)
 2. Ruby       (699)
 3. Haskell    (682)
 4. Rust       (669)
 5. Lua        (618)
 6. C          (553)
 7. C++        (520)
 8. JavaScript (439)
 9. Go         (382)
10. BQN        (336)

Blogs with Creative Title


1. Broken Digits by Arne Sommer.

2. Replacing the Broken Keys by Jorg Sommrey.

3. pipelines! by Luca Ferrari.

4. Broken Keys and Test Driven Understanding by Matthias Muth.

5. Digitally Replace Broken Keys by Packy Anderson.

6. Broken digits by Peter Campbell Smith.

7. Broken Digits by Roger Bell_West.

8. Broken digits by Simon Green.


GitHub Repository Stats


1. Commits: 38,771 (+101)

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

3. Contributors: 247 (+1)

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

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


Task 1: Complete Day

Submitted by: Mohammad Sajid Anwar

You are given an array of integers, @hours.

Write a script to return the number of pairs that forms a complete day.

A complete day is defined as a time duration that is an exact multiple of 24 hours.

Example 1

Input: @hours = (12, 12, 30, 24, 24)
Output: 2

Pair 1: (12, 12)
Pair 2: (24, 24)

Example 2

Input: @hours = (72, 48, 24, 5)
Output: 3

Pair 1: (72, 48)
Pair 2: (72, 24)
Pair 3: (48, 24)

Example 3

Input: @hours = (12, 18, 24)
Output: 0

Task 2: Maximum Frequency

Submitted by: Mohammad Sajid Anwar

You are given an array of positive integers, @ints.

Write a script to return the total number of elements in the given array which have the highest frequency.

Example 1

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

The maximum frequency is 2.
The elements 1 and 2 has the maximum frequency.

Example 2

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

The maximum frequency is 1.
The elements 1, 2, 3, 4 and 5 has the maximum frequency.


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


SO WHAT DO YOU THINK ?

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

Contact with me