The Weekly Challenge - 181

Monday, Sep 5, 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: Sentence Order

10. TASK #2: Hot Day


HEADLINES


Welcome to Week #181 of the weekly challenge.

Welcome a new member, Bejoy Mathews, an experienced Perl hacker. Thanks for the first contributions in Perl.

Today, we are giving away Token #4 to Kueppo Wesley for the book, Learning Perl Exercises by brian d foy. I will share the details with you in a separate email.

Another announcement of the week, since today is the first Monday of the month and time to declare the next champion, Stephen G. Lynn. He joined the Team PWC in the Week #168. Ever since he has contributed in both Perl and Raku without missing a week. He even shared blog post every week except the first two weeks.

Welcome back, Tyler Wardhaugh, after the break and thanks for introducing a new language, Fennel to the Team PWC. With this new addition, we now have 91 guest languages other than Perl and Raku. It would be big deal when we get to the magic number of 100.

Laurent Rosenfeld is back with maximum guest contributions, 23 solutions in 14 languages.

We had surprise element last week too as Ali Moradi contributed 14 solutions in 7 languages alongwith the regular contributions by Roger Bell_West.

I would also like to mention another member, AhmetEmre, for guest contributions. Last week, he shared solutions in BQN for the Week 1-56 as well as current week. With this, he jumped to rank #12 in the Guest Leader board.

I am back again after a short break and shared solutions in Perl, Raku, Python, Java and Swift .


Task #1: First Unique Character


First Unique Character


Task #2: Trim List


Trim List


TOP 10 Guest Languages


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  (1083)
 2. Haskell (489)
 3. Ruby    (381)
 4. Lua     (379)
 5. C       (264)
 6. C++     (264)
 7. Go      (222)
 8. Rust    (219)
 9. Node.js (191)
10. Awk     (185)

Blogs with Creative Title


1. First Uniquely Trimmed Index by Adam Russell.

2. Unique Trim by Arne Sommer.

3. Second to None by Colin Crain.

4. Unique Trim by Roger Bell_West.


GitHub Repository Stats


1. Commits: 27,572 (+141)

2. Pull Requests: 6,690 (+36)

3. Contributors: 205 (+1)

4. Fork: 260 (+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 - 180 by Mohammad S Anwar.


PERL REVIEW


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


Bejoy Mathews, an experienced Perl hacker joined the Team PWC.

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 check out the guest contributions for the Week #180.

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


Task 1: Sentence Order

Submitted by: Mohammad S Anwar

You are given a paragraph.

Write a script to order each sentence alphanumerically and print the whole paragraph.

Example

Input:
    All he could think about was how it would all end. There was
    still a bit of uncertainty in the equation, but the basics
    were there for anyone to see. No matter how much he tried to
    see the positive, it wasn't anywhere to be seen. The end was
    coming and it wasn't going to be pretty.

Ouput:
    about All all could end he how it think was would. a anyone
    basics bit but equation, for in of see still the the There
    there to uncertainty was were. anywhere be he how it matter
    much No positive, see seen the to to tried wasn't. and be
    coming end going it pretty The to was wasn't.

Task 2: Hot Day

Submitted by: Mohammad S Anwar

You are given file with daily temperature record in random order.

Write a script to find out days hotter than previous day.

Example

Input File: (temperature.txt)

2022-08-01, 20
2022-08-09, 10
2022-08-03, 19
2022-08-06, 24
2022-08-05, 22
2022-08-10, 28
2022-08-07, 20
2022-08-04, 18
2022-08-08, 21
2022-08-02, 25

Output:
2022-08-02
2022-08-05
2022-08-06
2022-08-08
2022-08-10


Last date to submit the solution 23:59 (UK Time) Sunday 11th September 2022.


SO WHAT DO YOU THINK ?

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

Contact with me