The Weekly Challenge - 131

Monday, Sep 20, 2021| 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: Consecutive Arrays

10. TASK #2: Find Pairs


HEADLINES


Let’s welcome Week #131 with 3 new members i.e. Rich Snyder, Ivan Dimitrov and Conor Hoekstra.

We now have 240 members and 10 guests.

Conor Hoeksta introduced new language J to Team PWC.

After relatively quiet Week #129, last week was much better.

Thanks for 38 Perl, 19 Raku and 13 blogs contributions. Above all we had 26 guest contributions in 17 languages.

Week #130 was special for me as I made a comeback after a gap of 7 weeks with solution to Odd Number task in Perl.

If you have any suggestions to make the weekly challenge more interesting and fun then please do share with us.


Blogs with Creative Title


1. The Odd Tree by Arne Sommer.

2. These Binary Trees are Odd by Adam Russell.

3. An Odd Tree by Roger Bell_West.


Let us share some interesting stats from the GitHub repository.

1. Commits: 19,934 (+116)

2. Pull Requests: 4,891 (+29)

3. Contributors: 177 (+1)

4. Fork: 225 (+2)

5. Stars: 105 (+2)


Last but not least, I would like to thank each and every member for their support and encouragement.



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 2021. 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 2021. 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 - 130” by Mohammad S Anwar.


PERL REVIEW


Please check out Perl solutions review of the “The Weekly Challenge - 128” 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. Rich Snyder, an experienced Perl hacker.

2. Ivan Dimitrov, an experienced Perl hacker from Sofia, Bulgaria.

3. Conor Hoekstra, APL and J hacker.


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 checkout the guest contributions for the Week #130.

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


TASK #1 › Consecutive Arrays

Submitted by: Mark Anderson

You are given a sorted list of unique positive integers.

Write a script to return list of arrays where the arrays are consecutive integers.

Example 1:

Input:  (1, 2, 3, 6, 7, 8, 9)
Output: ([1, 2, 3], [6, 7, 8, 9])

Example 2:

Input:  (11, 12, 14, 17, 18, 19)
Output: ([11, 12], [14], [17, 18, 19])

Example 3:

Input:  (2, 4, 6, 8)
Output: ([2], [4], [6], [8])

Example 4:

Input:  (1, 2, 3, 4, 5)
Output: ([1, 2, 3, 4, 5])

TASK #2 › Find Pairs

Submitted by: Yary

You are given a string of delimiter pairs and a string to search.

Write a script to return two strings, the first with any characters matching the “opening character” set, the second with any matching the “closing character” set.

Example 1:

Input:
    Delimiter pairs: ""[]()
    Search String: "I like (parens) and the Apple ][+" they said.

Output:
    "(["
    ")]"

Example 2:

Input:
    Delimiter pairs: **//<>
    Search String: /* This is a comment (in some languages) */ <could be a tag>

Output:
    /**/<
    /**/>


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


SO WHAT DO YOU THINK ?

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

Contact with me