The Weekly Challenge - 134

Monday, Oct 11, 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: Pandigital Numbers

10. TASK #2: Distinct Terms Count


HEADLINES


Welcome to the Week #134, we had more engagements than the previous week. Looks like Hacktoberfest festival is keeping everyone busy. We have participated in the annual event every year without fail. I am hoping it would get even busier.

We have a new guest, E. Alvarez, joined the team last week. Welcome to the Team PWC.

A new guest language, Nuweb, introduced by Adam Russell as well as sharing solution to Task #1 in the same.

Welcome back, Jaldhar H. Vyas, after a short back. Thanks for your complete solutions.

A polite request to the last champion, Jan Krnavek, please get in touch with us so that we can send you the prize money in your local currency. Unfortunately we don’t have your email to contact you. I left message for you in the GitHub PR you submitted earlier. Thank you for your support and encouragements,


Blogs with Creative Title


1. Smithe Thee Squarely by Arne Sommer.

2. Mr. Smith Squares Off by Dave Jacoby.

3. Rooting the Smith by Roger Bell_West.


Let us share some interesting stats from the GitHub repository.

1. Commits: 20,348 (+162)

2. Pull Requests: 5,002 (+45)

3. Contributors: 180 (+1)

4. Fork: 228 (+3)

5. Stars: 108 (+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 - 133” by Mohammad S 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


E. Alvarez joined the team, a Go Lang enthusiast.

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

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


TASK #1 › Pandigital Numbers

Submitted by: Mohammad S Anwar

Write a script to generate first 5 Pandigital Numbers in base 10.

As per the wikipedia, it says:

A pandigital number is an integer that in a given base has among its significant digits each digit used in the base at least once.


TASK #2 › Distinct Terms Count

Submitted by: Mohammad S Anwar

You are given 2 positive numbers, $m and $n.

Write a script to generate multiplcation table and display count of distinct terms.

Example 1

Input: $m = 3, $n = 3
Output:

      x | 1 2 3
      --+------
      1 | 1 2 3
      2 | 2 4 6
      3 | 3 6 9

Distinct Terms: 1, 2, 3, 4, 6, 9
Count: 6

Example 2

Input: $m = 3, $n = 5
Output:

      x | 1  2  3  4  5
      --+--------------
      1 | 1  2  3  4  5
      2 | 2  4  6  8 10
      3 | 3  6  9 12 15

Distinct Terms: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15
Count: 11


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


SO WHAT DO YOU THINK ?

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

Contact with me