The Weekly Challenge - 184

Monday, Sep 26, 2022| 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: Sequence Number

10. TASK #2: Split Array


HEADLINES


Welcome to the Week #184 of The Weekly Challenge.

Today, we are giving away Token #7 to Peter Campbell Smith for the book, Learning Perl Exercises by brian d foy. I will share the details with you in a separate email.


Past Winners

1) Cheok-Yin Fung
2) W. Luis Mochan
3) Robert DiCicco
4) Kueppo Wesley
5) Solathian
6) Dario Mazzeo

Welcome two new members to the Team PWC, Robbie Hatley and Baryshev Sergey. Please do check out Baryshev's one cycle solution for the task Max Index of Week 182.

I noticed, with the addition of two new members, we now have 270 members in the Team PWC.

It is nice to know that Team PWC members taking break and coming back with fresh energy. I am grateful to those who take time out and inform us in advance. Although, it is not needed, but nice to know.

My contributions to the Week 183 is in Perl only.


TOP 10 Guest Languages


This week Rust moved up one position to the rank #7.

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  (1099)
 2. Haskell (495)
 3. Ruby    (392)
 4. Lua     (383)
 5. C       (269)
 6. C++     (268)
 7. Rust    (228)
 8. Go      (224)
 9. Node.js (191)
10. Awk     (187)

Blogs with Creative Title


1. Unique Difference by Arne Sommer.

2. arrays and days by Luca Ferrari.

3. Unique arrays and differing dates by Peter Campbell Smith.

4. A Unique Date by Roger Bell_West.

5. Unique Differences by Simon Green.


GitHub Repository Stats


1. Commits: 27,960 (+106)

2. Pull Requests: 6,786 (+27)

3. Contributors: 205

4. Fork: 260

5. Stars: 143



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 2022. 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 2022. 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 - 183 by Mohammad S Anwar.


PERL REVIEW


Please check out Perl solutions review of The Weekly Challenge - 177 by Colin Crain.

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. Baryshev Sergey, an experienced Perl hacker from Russia joined the Team PWC.

2. Robbie Hatley, an experienced Perl hacker from USA 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 #183.

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


Task 1: Sequence Number

Submitted by: Mohammad S Anwar

You are given list of strings in the format aa9999 i.e. first 2 characters can be anything 'a-z' followed by 4 digits '0-9'.

Write a script to replace the first two characters with sequence starting with '00', '01', '02' etc.

Example 1

Input: @list = ( 'ab1234', 'cd5678', 'ef1342')
Output: ('001234', '015678', '021342')

Example 2

Input: @list = ( 'pq1122', 'rs3334')
Output: ('001122', '013334')

Task 2: Split Array

Submitted by: Mohammad S Anwar

You are given list of strings containing 0-9 and a-z separated by space only.

Write a script to split the data into two arrays, one for integers and one for alphabets only.

Example 1

Input: @list = ( 'a 1 2 b 0', '3 c 4 d')
Output: [[1,2,0], [3,4]] and [['a','b'], ['c','d']]

Example 2

Input: @list = ( '1 2', 'p q r', 's 3', '4 5 t')
Output: [[1,2], [3], [4,5]] and [['p','q','r'], ['s'], ['t']]


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


SO WHAT DO YOU THINK ?

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

Contact with me