The Weekly Challenge - 140

Monday, Nov 22, 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: Add Binary

10. TASK #2: Multiplication Table


HEADLINES



Last week, I spoke about celebrating 1000 days of The Weekly Challenge by giving away FREE T-shirt to all the champions of the weekly challenge.

I am overwhelmed by the support to the campaign. I have created blog post with all the details. Please check it out and share your suggestions as well.

We received the first contribution in Perlby newly joined member, Jake.

Simon Green shared solutions in Python for the first time.

I have also participated this week and shared solutions in Perl, Raku, Java, Python and Swift.

I am not sure if you noticed it. We have been receiving guest contributions regularly. For the last 7 weeks, we have received 50+ contributions every week.

Week 133: 53

Week 134: 63

Week 135: 51

Week 136: 53

Week 137: 62

Week 138: 59

Week 139: 57

Similarly regular contributions is also going great. Last 7 weeks records shows we have received 90+ contributions every week.

Week 133: 93

Week 134: 92

Week 135: 102

Week 136: 93

Week 137: 96

Week 138: 97

Week 139: 95


Blogs with Creative Title


1. Jort Sort the First Five Long Primes by Adam Russell.

2. The Longest Sort with Raku by Arne Sommer.

3. That’s a Long Jort to Sort by Colin Crain.

4. It’s The Mullet Of Algorithms!: The Weekly Challenge #139 by Dave Jacoby.

5. Perl Weekly Challenge #139 - Whats recurring by James Smith.

6. Perl Weekly Challenge 139: Jort Primes by Roger Bell_West.


Let us share some interesting stats from the GitHub repository.

1. Commits: 21,460 (+154)

2. Pull Requests: 5,253 (+36)

3. Contributors: 181

4. Fork: 230

5. Stars: 113 (+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 - 139” 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


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

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


TASK #1 › Add Binary

Submitted by: Mohammad S Anwar

You are given two decimal-coded binary numbers, $a and $b.

Write a script to simulate the addition of the given binary numbers.

The script should simulate something like $a + $b. (operator overloading)

Example 1

Input: $a = 11; $b = 1;
Output: 100

Example 2

Input: $a = 101; $b = 1;
Output: 110

Example 3

Input: $a = 100; $b = 11;
Output: 111

TASK #2 › Multiplication Table

Submitted by: Mohammad S Anwar

You are given 3 positive integers, $i, $j and $k.

Write a script to print the $kth element in the sorted multiplication table of $i and $j.

Example 1

Input: $i = 2; $j = 3; $k = 4
Output: 3

Since the multiplication of 2 x 3 is as below:

    1 2 3
    2 4 6

The sorted multiplication table:

    1 2 2 3 4 6

Now the 4th element in the table is "3".

Example 2

Input: $i = 3; $j = 3; $k = 6
Output: 4

Since the multiplication of 3 x 3 is as below:

    1 2 3
    2 4 6
    3 6 9

The sorted multiplication table:

    1 2 2 3 3 4 6 6 9

Now the 6th element in the table is "4".


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


SO WHAT DO YOU THINK ?

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

Contact with me