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: 6 out of 49
10. TASK #2: Linear Recurrence of Second Order
HEADLINES
Welcome to the Week #246
of The Weekly Challenge
.
Today is the first monday of the month and time to declare next champion. With great pleasure, I would like to announce, Peter Meszaros
as the next champion of the weekly challenge. As of today, he has contributed 50 Perl
solutions to the weekly challenge.
Advent Calendar 2023
Day |
Article |
Author |
1 |
Third Highest and Maximum (Bit-Wise) XOR | Laurent Rosenfeld |
2 |
Maximum sum of pair minimums | Bob Lied |
3 |
Minimum Index Sum / Duplicate and Missing | James Smith |
4 |
Give A Little Bit | Dave Jacoby |
Last 5 weeks
mainstream contribution stats. Thank you Team PWC
for your support and encouragements.
Week |
Perl |
Raku |
Blog |
241 |
59 | 31 | 25 |
242 |
57 | 37 | 32 |
243 |
63 | 34 | 28 |
244 |
55 | 36 | 29 |
245 |
53 | 30 | 28 |
Last 5 weeks
guest contribution stats. Thank you each and every guest contributors for your time and efforts.
Week |
Guests |
Contributions |
Languages |
241 |
14 | 68 | 21 |
242 |
13 | 57 | 20 |
243 |
18 | 85 | 24 |
244 |
14 | 56 | 17 |
245 |
16 | 53 | 18 |
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 (2021)
2. Ruby (627)
3. Haskell (612)
4. Lua (552)
5. Rust (473)
6. C (465)
7. C++ (447)
8. BQN (315)
9. Go (303)
10. JavaScript (297)
Blogs with Creative Title
1. Sleeping Threads Reveal the Largest of Three by Adam Russell.
2. La La Three by Arne Sommer.
3. Getting Things Sorted by Dave Jacoby.
4. I’m never last picked by Ian Rifkin.
5. The Most Popular of Three by Jorg Sommrey.
6. Hashes and Joins by Luca Ferrari.
7. Sort Languages to the Largest of Three by Packy Anderson.
8. Popular languages and largest threefold by Peter Campbell Smith.
9. Largest Sort by Roger Bell_West.
GitHub Repository Stats
1. Commits: 35,481 (+125
)
2. Pull Requests: 9,170 (+38
)
3. Contributors: 239
4. Fork: 301
5. Stars: 163
SPONSOR
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 2023. 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 2023. 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 - 245 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 #245.
Please find past solutions by respected guests. Please share your creative solutions in other languages.
Task 1: 6 out of 49
Submitted by: Andreas Voegele
6 out of 49 is a German lottery.
Write a script that outputs six unique random integers from the range 1 to 49.
Output
3
10
11
22
38
49
Task 2: Linear Recurrence of Second Order
Submitted by: Jorg Sommrey
You are given an array @a
of five integers.
Write a script to decide whether the given integers form a linear recurrence of second order with integer factors.
A linear recurrence of second order has the form
a[n] = p * a[n-2] + q * a[n-1] with n > 1
where p and q must be integers.
Example 1
Input: @a = (1, 1, 2, 3, 5)
Output: true
@a is the initial part of the Fibonacci sequence a[n] = a[n-2] + a[n-1]
with a[0] = 1 and a[1] = 1.
Example 2
Input: @a = (4, 2, 4, 5, 7)
Output: false
a[1] and a[2] are even. Any linear combination of two even numbers with integer factors is even, too.
Because a[3] is odd, the given numbers cannot form a linear recurrence of second order with integer factors.
Example 3
Input: @a = (4, 1, 2, -3, 8)
Output: true
a[n] = a[n-2] - 2 * a[n-1]
Last date to submit the solution 23:59 (UK Time) Sunday 10th December 2023.