The Weekly Challenge - 310

Monday, Feb 24, 2025| 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: Arrays Intersection

10. TASK #2: Sort Odd Even


HEADLINES


Welcome to the Week #310 of The Weekly Challenge.


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

  Week      Perl       Raku       Blog   
   305       44       21       21   
   306       39       18       10   
   307       44       20       12   
   308       44       22       16   
   309       50       21       19   

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

  Week      Guests       Contributions       Languages   
   305       9       46       17   
   306       9       40       15   
   307       15       61       23   
   308       14       56       21   
   309       13       56       21   

TOP 10 Guest Languages


Finally, we saw movements in ranking. C++ moved up one place and reached rank #6. I know it is still a close contest.

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     (3211)
 2. Rust       (852)
 3. Ruby       (773)
 4. Haskell    (749)
 5. Lua        (690)
 6. C++        (591)
 7. C          (590)
 8. JavaScript (536)
 9. Go         (460)
10. BQN        (416)

Blogs with Creative Title


1. Min or Min by Arne Sommer.

2. Substracting Pairs by Jorg Sommrey.

3. Mini Mini by Matthias Muth.

4. Mind the gap by Peter Campbell Smith.

5. All You Minima by Roger Bell_West.


GitHub Repository Stats


1. Commits: 42,414 (+95)

2. Pull Requests: 11,606 (+36)

3. Contributors: 257

4. Fork: 324

5. Stars: 186



With start of Week #268, we have a new sponsor Lance Wicks until the end of year 2025. 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 - 309 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 #309.

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


Task 1: Arrays Intersection

Submitted by: Mohammad Sajid Anwar

You are given a list of array of integers.

Write a script to return the common elements in all the arrays.

Example 1

Input: $list = ( [1, 2, 3, 4], [4, 5, 6, 1], [4, 2, 1, 3] )
Output: (1, 4)

Example 2

Input: $list = ( [1, 0, 2, 3], [2, 4, 5] )
Output: (2)

Example 3

Input: $list = ( [1, 2, 3], [4, 5], [6] )
Output: ()

Task 2: Sort Odd Even

Submitted by: Mohammad Sajid Anwar

You are given an array of integers.

Write a script to sort odd index elements in decreasing order and even index elements in increasing order in the given array.

Example 1

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

Even index elements: 4, 2 => 2, 4 (increasing order)
Odd index elements : 1, 3 => 3, 1 (decreasing order)

Example 2

Input: @ints = (3, 1)
Output: (3, 1)

Example 3

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

Even index elements: 5, 2, 4 => 2, 4, 5 (increasing order)
Odd index elements : 3, 1 => 3, 1 (decreasing order)


Last date to submit the solution 23:59 (UK Time) Sunday 2nd March 2025.


SO WHAT DO YOU THINK ?

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

Contact with me