The Weekly Challenge - 195

Monday, Dec 12, 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: Special Integers

10. TASK #2: Most Frequent Even


HEADLINES


Welcome to the Week #195 of The Weekly Challenge.

Advent Calendar 2022 is going on with full swing, thanks to the contributions by the members of Team PWC.

Day Article Author
   1     Are Abecedarians from Abecedaria?     Adam Russell  
   2     Binary String / Odd String     James Smith  
   3     Counting Cute     Colin Crain  
   4     Four is Magic     Alexander Pankoff  
   5     Farey, Moebius     Arne Sommer  
   6     Our Primes     Dave Jacoby  
   7     Three means and big bases     Simon Green  
   8     Pernicious / Weird Number     Cheok-Yin Fung  
   9     Fortune and Pisani     Luca Ferrari  
   10     Padawan Missing     Bruce Gray  
   11     Factorions     Flavio Poletti  
   12     Triangle Sum Path / Rectangle Area     W. Luis Mochan  

Finally we reached the milestone one more time last week. Thank you Team PWC for the support and encouragement.

  Week      184       185       186       187       188       189       190       191       192       193       194   
Perl 57 61 58 51 63 62 55 56 59 58 58
Raku 31 35 33 34 36 35 32 38 41 31 32
Blog 17 19 20 20 16 18 23 21 23 21 19

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

Today, we are giving away Coupon #18 to Bob Lied for the book, Learning Perl Exercises by brian d foy. Unfortunately we don’t have your email address, can you please share with us so that we can send you the coupon?

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. Jorg Sommrey 14. James Smith
15. Alexander Pankoff 16. Simon Green
17. Robbie Hatley 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 39 guest contributions in 18 languages.

With so much going on in the recent weeks, I hardly find time to contribute my solutions. I will try my best in coming weeks to get back on track.


TOP 10 Guest Languages


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  (1238)
 2. Haskell (518)
 3. Ruby    (433)
 4. Lua     (417)
 5. C       (300)
 6. C++     (300)
 7. Rust    (272)
 8. BQN     (267)
 9. Go      (233)
10. Java    (210)

Blogs with Creative Title


1. Digital Frequalizer by Arne Sommer.

2. Bag Time! by Bruce Gray.

3. Freq Out, Man! by Colin Crain.

4. iffy solutions by James Smith.

5. regular expressions everywhere! by Luca Ferrari.

6. Completing the time and levelling the letters by Peter Campbell Smith.

7. Digital Equaliser by Roger Bell_West.

8. Digital frequency by Simon Green.


GitHub Repository Stats


1. Commits: 29,685 (+138)

2. Pull Requests: 7,236 (+37)

3. Contributors: 213

4. Fork: 268

5. Stars: 149



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

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


Task 1: Special Integers

Submitted by: Mohammad S Anwar

You are given a positive integer, $n > 0.

Write a script to print the count of all special integers between 1 and $n.

An integer is special when all of its digits are unique.

Example 1:

Input: $n = 15
Output: 14 as except 11 all other integers between 1 and 15 are spcial.

Example 2:

Input: $n = 35
Output: 32 as except 11, 22, 33 all others are special.

Task 2: Most Frequent Even

Submitted by: Mohammad S Anwar

You are given a list of numbers, @list.

Write a script to find most frequent even numbers in the list. In case you get more than one even numbers then return the smallest even integer. For all other case, return -1.

Example 1

Input: @list = (1,1,2,6,2)
Output: 2 as there are only 2 even numbers 2 and 6 and of those 2 appears the most.

Example 2

Input: @list = (1,3,5,7)
Output: -1 since no even numbers found in the list

Example 3

Input: @list = (6,4,4,6,1)
Output: 4 since there are only two even numbers 4 and 6. They both appears the equal number of times, so pick the smallest.


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


SO WHAT DO YOU THINK ?

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

Contact with me