Perl Weekly Challenge - 013

Sunday, Jun 16, 2019| Tags: Perl, Raku

Couple of weeks ago, I tweet below about a surprise for all registered members.

PWC 012 Tweet

It is now time to annouce the surprise. Few weeks ago, Peter Sergeant of PerlCareers contacted me by email and offered to sponsor the weekly challenge to make it more attractive. He offered the winner of weekly challenge $50 Amazon Voucher. We, Peter and I, worked out the formalities and other related issues. All registered members who contribute to the weekly challenge for the week will go into the ballot box. To increase your chance to be the winner, just contribute more solutions i.e. in Perl and in Raku. You could even blog about your solutions. For every solutions we receive before the deadline, we would put one entry in the ballot box. So for example, if a member submits solutions to all the three challenges in Perl and Raku with blog, then we would put 7 entries for the member.

From next week onwward, just minute before the launch of the weekly challenge, I will pick one winner randomly from the ballot box. This gives member some more time to submit the solutions past the actual deadline (6 pm UK time). The winner name would then be announce with the release of weekly challenge. I will email the winner $50 Amazon voucher code shortly after the release of the challenge. Please make sure, we have your valid email address, just in case. In return we would love to receive the acknowledgement of the Amazon voucher.

We will have our first winner with the release of [Perl Weekly Challenge #014]. This makes the [Perl Weekly Challenge #013] contender for the first competitve weekly challengeRakuod luck and all the very best for the weekly challenge.


RECAP

Here is the recap of last week challenge.


CHART

Please take a look at the charts showing interesting data.

I would like to thank everyone for their valuable suggestions. Please do share your experience with us. Good luck for the weekly challenge and enjoy.


NEW MEMBERS

  1. Rakesh Kumar Shardiwal, an experience Perl hacker from Gurgaon, Haryana, India.

  2. Joe Tym, an experience Perl hacker from London, UK since 2005.

Check out other team members.


Challenge #1

Write a script to print the date of last Friday of every month of a given year. For example, if the given year is 2019 then it should print the following:

2019/01/25
2019/02/22
2019/03/29
2019/04/26
2019/05/31
2019/06/28
2019/07/26
2019/08/30
2019/09/27
2019/10/25
2019/11/29
2019/12/27

Challenge #2

Write a script to demonstrate Mutually Recursive methods. Two methods are mutually recursive if the first method calls the second and the second calls first in turn. Using the mutually recursive methods, generate Hofstadter Female and Male sequences.

 F ( 0 ) = 1   ;   M ( 0 ) = 0
 F ( n ) = n − M ( F ( n − 1 ) ) , n > 0
 M ( n ) = n − F ( M ( n − 1 ) ) , n > 0.

Challenge #3

Find the details of a given word using the Words API. The API challenge is optional but would love to see your solution.


Last date to submit the solution 6 pm (UK Time) Sunday 23rd June 2019.

SO WHAT DO YOU THINK ?

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

Contact with me