Perl Weekly Challenge - 072

Monday, Aug 3, 2020| Tags: Perl, Raku

HEADLINES


Today is the first Monday of the August 2020 and it is time to announce the Champion of the Month. With great pleasure, we announce the Champion of the Month, Walt Mankowski, currently ranked #044 with score of 58. He joined the Team PWC in the Week #013. As of today, he has contributed Perl (29), C (6) and Python (12).

Andrew Shitov is on a mission it seems, he has done not one but two weeks Live Raku Reviews. Please check out the links down below. Please do like, share and comment the videos to appreciate the hard work he has put in. Great work, Andrew. Please keep it up.

Colin Crain is making the review process as much automated as possible. I appreciate his hardwork and dedication. We all enjoy your thorough Perl Reviews.

I didn’t get time to do live coding session this week. I promise to catch up next week. If you want to check out past videos then please take a look at my YouTube Channel. Please do subscribe the channel if you don’t want to miss new videos.

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

RECAP


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

PERL REVIEW


Please checkout Perl solutions review of the “Perl Weekly Challenge - 070” by Colin Crain.

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

RAKU REVIEW


Please checkout Raku solutions review of the “Perl Weekly Challenge - 067” and “Perl Weekly Challenge - 070” by Andrew Shitov.

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


Csaba Simandi, Perl enthusiast from Budapest, Hungary joined the Team PWC.

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


Cheok-Yin Fung shared solution to Task #1 in Lisp.

Dave Jacoby shared solution to Task #1 in Node.

Mohammad S Anwar shared solution to Task #1 in Swift.

Richard Park shared solution to Task #1 in APL.

Walt Mankowski shared solutions to Task #1 and Task #2 in C.

Walt Mankowski shared solutions to Task #1 and Task #2 in Python.

Wanderdoc shared solution to Task #1 in R.

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



TASK #1 › Trailing Zeroes

Submitted by: Mohammad S Anwar

You are given a positive integer $N (<= 10).

Write a script to print number of trailing zeroes in $N!.

Example 1

Input: $N = 10

Output: 2 as $N! = 3628800 has 2 trailing zeroes


Example 2

Input: $N = 7

Output: 1 as $N! = 5040 has 1 trailing zero


Example 3

Input: $N = 4

Output: 0 as $N! = 24 has 0 trailing zero



TASK #2 › Lines Range

Submitted by: Mohammad S Anwar

You are given a text file name $file and range $A - $B where $A <= $B.

Write a script to display lines range $A and $B in the given file.

Example

Input:

    $ cat input.txt
    L1
    L2
    L3
    L4
    ...
    ...
    ...
    ...
    L100
$A = 4 and $B = 12

Output:

    L4
    L5
    L6
    L7
    L8
    L9
    L10
    L11
    L12

Last date to submit the solution 23:59 (UK Time) Sunday 9th August 2020.


SO WHAT DO YOU THINK ?

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

Contact with me