The Weekly Challenge - 135

Monday, Oct 18, 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: Middle 3-digits

10. TASK #2: Validate SEDOL


HEADLINES


Welcome to the Week #135. We are nearly halfway through the Hacktoberfest already. If you haven’t kickstarted your journey then please don’t delay it any further. You still have time submit minimum 4 Pull Requests to receive the specially designed T-shirt anywhere in the world, thanks to the origaniser, Digital Ocean.

Roger Bell_West reminded me last week that we have now received 5000+ Pull Requests. It is a big deal considering not every members of Team PWC submits code using PR.

We have had another busy week as far as guest contributions are concerned. Abigail is mainly responsible for it. I would like to say A big Thank You to Abigail for his consistent contributions. Last week we received 61 solutions. We crossed 50+ mark after a gap of 10 weeks.

With regard to the regular contributions, we are not far behind either. Last week, we received 90 contributions altogether as compared to 93 the week before. Kudos to each and every contributors.

I have proposed a new logo for the weekly challenge, did you notice at the top of the page? Please do let know what do you think?

I request everyone to keep the momentum going. Also please do share your suggestions to make it even more fun to participate.


Blogs with Creative Title


1. Distinctly Pandigital with Raku and Perl by Arne Sommer.

2. There Are Wrong Ways To Skin A Cat by Dave Jacoby.


Let us share some interesting stats from the GitHub repository.

1. Commits: 20,542 (+194)

2. Pull Requests: 5,046 (+42)

3. Contributors: 180

4. Fork: 228

5. Stars: 108


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


PERL REVIEW


Please check out Perl solutions review of the “The Weekly Challenge - 131” 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


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

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


TASK #1 › Middle 3-digits

Submitted by: Mohammad S Anwar

You are given an integer.

Write a script find out the middle 3-digits of the given integer, if possible otherwise throw sensible error.

Example 1

Input: $n = 1234567
Output: 345

Example 2

Input: $n = -123
Output: 123

Example 3

Input: $n = 1
Output: too short

Example 4

Input: $n = 10
Output: even number of digits

TASK #2 › Validate SEDOL

Submitted by: Mohammad S Anwar

You are given 7-characters alphanumeric SEDOL.

Write a script to validate the given SEDOL. Print 1 if it is a valid SEDOL otherwise 0.

For more information about SEDOL, please checkout the wikipedia page.

Example 1

Input: $SEDOL = '2936921'
Output: 1

Example 2

Input: $SEDOL = '1234567'
Output: 0

Example 3

Input: $SEDOL = 'B0YBKL9'
Output: 1


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


SO WHAT DO YOU THINK ?

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

Contact with me