Perl Weekly Challenge - 052

Monday, Mar 16, 2020| Tags: Perl, Raku


HEADLINES



A friend of mine, Jeff Goff (@DrForr) sadly killed in a scuba-diving accident while on vacation few days ago. I have known him for many years, mostly got to attend his talk at London Perl Workshop. I still remember his talk “The Art of Programming”. It was a very different experience where audience got to play with piece of paper during the entire talk. I only got the opportunity to have one-2-one conversation with him at The Perl Conference in Riga last year. I even had the pleasure to go to dinner with him one day during the conference. He was a gem of a person. He even contributed to CPAN. He would always encourage me, no matter what. Every time I post something on Twitter/Facebook, he would be the first to like or comment. He would always help me with Raku questions on Twitter.

May his soul rest in peace

COVID-19 seems to have taken the focus away from “The Weekly Challenge” last week. I have had few members sharing they couldn’t focus on weekly challenge because of COVID-19 pandemic. Even London has been affected badly. I hope things will get better soon. Please look after yourself and your family. Stay indoor and stay safe. For me, reading your contributions worked like a therapy. It helped me to forget about everything. Also doing the weekly challenge also helped me avoid watching news about the pandemic.

We are looking for volunteer to help us with Raku Reviews. So far, Laurent Rosenfeld and Ryan Thompson have done brilliant job with quality reviews. Their reviews have been appreciated by each and every member of Team PWC. We would be grateful if you could help us with reviews. Please let us know if you would like to be part of elite team of reviewers.

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



RECAP



Quick recap of the “Perl Weekly Challenge - 051” by Mohammad S Anwar.



PERL REVIEW



Please checkout Perl** solutions review of the “Perl Weekly Challenge - 049”** by Ryan Thompson.

If you missed any past reviews then please checkout the collection.



RAKU REVIEW



If you missed any past reviews then please checkout 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 give it a try to an excellent tool EZPWC created by respected member Saif Ahmed of Team PWC.



GUESTS



Ulrich Rieke shared solution to Task #2 in C++. Also shared solutions to Task #1 and Task #2 in Haskell.

User Person shared solutions to Task #1 and Task #2 in Python.

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



TASK #1



Stepping Numbers


Write a script to accept two numbers between 100 and 999. It should then print all Stepping Numbers between them.

A number is called a stepping number if the adjacent digits have a difference of 1. For example, 456 is a stepping number but 129 is not.



TASK #2



Lucky Winner


Suppose there are following coins arranged on a table in a line in random order.

£1, 50p, 1p, 10p, 5p, 20p, £2, 2p

Suppose you are playing against the computer. Player can only pick one coin at a time from either ends. Find out the lucky winner, who has the larger amounts in total?



Last date to submit the solution 23:59 (UK Time) Sunday 22nd March 2020.



SO WHAT DO YOU THINK ?

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

Contact with me