The Weekly Challenge - 190

Monday, Nov 7, 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: Capital Detection

10. TASK #2: Decoded List


HEADLINES


Welcome to the Week #190 of The Weekly Challenge.

For the first time ever, we have received 100+ contributions back to back for 5 consecutive weeks. Thank you Team PWC for the support and encouragement.

  Week      184       185       186       187       188       189   
Perl 57 61 58 51 63 62
Raku 31 35 33 34 36 35
Blog 17 19 20 20 16 18

Last week, we had 40 regular contributors and 14 guest contributors. Thank you everyone for the support and encouragement.

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

Past Winners

  S. No.   Name S. No. Name
1. Cheok-Yin Fung 2. W. Luis Mochan
3. Robert DiCicco 4. Kueppo Wesley
5. Solathian 6. Dario Mazzeo
7.   Peter Campbell Smith   8. Kjetil Skotheim
9. Neils van Dijke 10.   Laurent Rosenfeld  
11. Duncan C. White 12. Ali Moradi
13. 14.
15. 16.
17. 18.
19. 20.
21. 22.
23. 24.
25. 26.
27. 28.
29. 30.
31. 32.
33. 34.
35. 36.
37. 38.
39. 40.
41. 42.
43. 44.
45. 46.
47. 48.
49. 50.

I would like to thank every guest contributors for making it special every week. Last week we received 65 guest contributions in 21 languages.

Last week, I managed to contribute in Perl and Raku only.

Task #1: Greater Character [Perl] [Raku]

Task #2: Array Degree [Perl]


TOP 10 Guest Languages


Java made it to the TOP 10 replacing Node.js, thanks to all guest contributors.

Do you see your favourite language in the Top 10? If not then why not contribute regularly and make it to the top.

 1. Python  (1178)
 2. Haskell (506)
 3. Ruby    (414)
 4. Lua     (401)
 5. C       (284)
 6. C++     (284)
 7. BQN     (265)
 8. Rust    (252)
 9. Go      (228)
10. Java    (202)

Blogs with Creative Title


1. To a Greater Degree by Adam Russell.

2. To a Greater Degree by Arne Sommer.

3. Saving your Degree by Great Character! by Bruce Gray.

4. The Degree of Difficulty is the Difficulty of the Degree by Colin Crain.

5. The smallest greater and the shortest slice by Peter Campbell Smith.

6. Degree of Character by Roger Bell_West.

7. Letter and numbers by Simon Green.


GitHub Repository Stats


1. Commits: 28,932 (+156)

2. Pull Requests: 7,037 (+43)

3. Contributors: 211

4. Fork: 267

5. Stars: 145 (+1)



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


PERL REVIEW


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


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

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


Task 1: Capital Detection

Submitted by: Mohammad S Anwar

You are given a string with alphabetic characters only: A..Z and a..z.

Write a script to find out if the usage of Capital is appropriate if it satisfies at least one of the following rules:

1) Only first letter is capital and all others are small.
2) Every letter is small.
3) Every letter is capital.

Example 1

Input: $s = 'Perl'
Output: 1

Example 2

Input: $s = 'TPF'
Output: 1

Example 3

Input: $s = 'PyThon'
Output: 0

Example 4

Input: $s = 'raku'
Output: 1

Task 2: Decoded List

Submitted by: Mohammad S Anwar

You are given an encoded string consisting of a sequence of numeric characters: 0..9, $s.

Write a script to find the all valid different decodings in sorted order.

Encoding is simply done by mapping A,B,C,D,… to 1,2,3,4,… etc.

Example 1

Input: $s = 11
Output: AA, K

11 can be decoded as (1 1) or (11) i.e. AA or K

Example 2

Input: $s = 1115
Output: AAAE, AAO, AKE, KAE, KO

Possible decoded data are:
(1 1 1 5) => (AAAE)
(1 1 15)  => (AAO)
(1 11 5)  => (AKE)
(11 1 5)  => (KAE)
(11 15)   => (KO)

Example 3

Input: $s = 127
Output: ABG, LG

Possible decoded data are:
(1 2 7) => (ABG)
(12 7)  => (LG)


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


SO WHAT DO YOU THINK ?

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

Contact with me