The Weekly Challenge - 178

Monday, Aug 15, 2022| 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: Quater-imaginary Base

10. TASK #2: Business Date


HEADLINES


Welcome to Week #178 of the weekly challenge.

We have two new members joining the Team PWC last week i.e. AhmetEmre and Aut0exec. Thank you AhmetEmre for solutions in BQN and Aut0exec for solution in Perl.

Please checkout the interview with our latest champion Marton Polgar.

The two weekly newsletters, one for Perl and another for Raku regularly feature the weekly challenge. I am gratefull to both Gabor Szabo and Elizabeth Mattijsen for giving us space every week.

Few days ago, brain d foy, contacted me with the offer of 50 coupons for his latest creation, Learning Perl Exercises. I have decided to gift one token every week to one lucky member of Team PWC.

So the Token #1 is given to Cheok-Yin Fung. I will share the details with you separately in an email, congratulations.

Laurent Rosenfeld, thank you for sharing the collection of guest contributions, 26 solutions in 19 different languages.

Altogether we received 73 solutions by 14 contributors.

Happy to share my solutions in Perl, Raku, Python, Java and Swift.


Task #1: Permuted Multiples



Permuted Multiples


Task #2: Reversible Numbers



Reversible Numbers


TOP 10 Guest Languages


Ruby jumped one position up to rank #3. Do you see your favourite language in the Top 10? If not then why not contribute regularly and make it the top chart.

 1. Python  (1057)
 2. Haskell (484)
 3. Ruby    (371)
 4. Lua     (370)
 5. C++     (258)
 6. C       (258)
 7. Go      (217)
 8. Rust    (212)
 9. Node.js (191)
10. Awk     (184)

Last Friday, I received the delivery of 50 mailing bags. I then placed the order for Mini Thermal Printer for address label. As soon as I receive the label printer, I will get the individual parcel ready.


Box of T-shirts




Blogs with Creative Title


1. Cyclops Validation by Adam Russell.

2. Cyclops Be Dammed by Arne Sommer.

3. Yet Another Damm Algorithm by Colin Crain.

4. One Eye on the Primetime Slot by Colin Crain.

5. Damn numbers! by Luca Ferrari.

6. Damm and Cyclops by Peter Campbell Smith.

7. Damm Cyclops by Roger Bell_West.


GitHub Repository Stats


1. Commits: 27,262 (+154)

2. Pull Requests: 6,610 (+42)

3. Contributors: 203 (+2)

4. Fork: 257 (+3)

5. Stars: 143



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 2022. 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 2022. 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 - 177 by Mohammad S Anwar.


PERL REVIEW


Please check out Perl solutions review of The Weekly Challenge - 171 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


Aut0exec, an experienced Perl hacker joined the Team PWC.

AhmetEmre an experienced hacker joined as guest.


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

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


Task 1: Quater-imaginary Base

Submitted by: Mohammad S Anwar

Write a script to convert a given number (base 10) to quater-imaginary base number and vice-versa. For more informations, please checkout wiki page.

For example,

$number_base_10 = 4
$number_quater_imaginary_base = 10300

Task 2: Business Date

Submitted by: Mohammad S Anwar

You are given $timestamp (date with time) and $duration in hours.

Write a script to find the time that occurs $duration business hours after $timestamp. For the sake of this task, let us assume the working hours is 9am to 6pm, Monday to Friday. Please ignore timezone too.

For example,

Suppose the given timestamp is 2022-08-01 10:30 and the duration is 4 hours.
Then the next business date would be 2022-08-01 14:30.

Similar if the given timestamp is 2022-08-01 17:00 and the duration is 3.5 hours.
Then the next business date would be 2022-08-02 11:30.


Last date to submit the solution 23:59 (UK Time) Sunday 21st August 2022.


SO WHAT DO YOU THINK ?

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

Contact with me