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: Element Digit Sum
10. TASK #2: Multiply by Two
HEADLINES
Welcome to the Week #261
of The Weekly Challenge
.
Just a quick update with regard to the work carried out by Outreachy Applicants
, we now have new shiny homepage and new logo. We are working on new interactive user interface. We would have MySQL
database for critical data. You can track the work in the repository if you want. We have only scratched the surface now. The actual work would begin when we convert the HTML
page to Template
page and start creating Dancer2
backed REST API
.
If anyone wants to contribute, please get in touch with us.
Last 5 weeks
mainstream contribution stats. Thank you Team PWC
for your support and encouragements.
Week |
Perl |
Raku |
Blog |
256 |
57 | 32 | 26 |
257 |
41 | 25 | 22 |
258 |
56 | 38 | 30 |
259 |
41 | 19 | 22 |
260 |
50 | 28 | 27 |
Last 5 weeks
guest contribution stats. Thank you each and every guest contributors for your time and efforts.
Week |
Guests |
Contributions |
Languages |
256 |
17 | 63 | 17 |
257 |
19 | 61 | 20 |
258 |
17 | 67 | 19 |
259 |
13 | 44 | 17 |
260 |
14 | 56 | 17 |
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 (2337)
2. Ruby (660)
3. Haskell (640)
4. Lua (584)
5. Rust (579)
6. C (517)
7. C++ (487)
8. JavaScript (376)
9. Go (338)
10. BQN (319)
Blogs with Creative Title
1. This Week a Ranking Occurred! by Adam Russell.
2. Unique Rank by Arne Sommer.
3. Occurrences with BQN by BarrOff.
4. 13 x 20 by Dave Jacoby.
5. Unique Multisets by Jorg Sommrey.
6. Occurrencies and Permutations by Luca Ferrari.
7. Unique Occurrences and Non-unique Permutations by Matthias Muth.
8. Unique Dictionary Occurrences are Rank by Packy Anderson.
9. Uniquely ranked by Peter Campbell Smith.
10. Uniquely Rank by Roger Bell_West.
11. Counting and ranking by Simon Green.
GitHub Repository Stats
1. Commits: 37,162 (+113
)
2. Pull Requests: 9,749 (+39
)
3. Contributors: 243
4. Fork: 306
5. Stars: 170
SPONSOR
In the year 2024
, we are looking for new sponsor for monthly winner. If anyone interested please get in touch with us at perlweeklychallenge@yahoo.com
. Thanks for your support in advance.
RECAP
Quick recap of The Weekly Challenge - 260 by Mohammad Sajid 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 #260.
Please find past solutions by respected guests. Please share your creative solutions in other languages.
Task 1: Element Digit Sum
Submitted by: Mohammad Sajid Anwar
You are given an array of integers, @ints
.
Write a script to evaluate the absolute difference between element and digit sum of the given array.
Example 1
Input: @ints = (1,2,3,45)
Output: 36
Element Sum: 1 + 2 + 3 + 45 = 51
Digit Sum: 1 + 2 + 3 + 4 + 5 = 15
Absolute Difference: | 51 - 15 | = 36
Example 2
Input: @ints = (1,12,3)
Output: 9
Element Sum: 1 + 12 + 3 = 16
Digit Sum: 1 + 1 + 2 + 3 = 7
Absolute Difference: | 16 - 7 | = 9
Example 3
Input: @ints = (1,2,3,4)
Output: 0
Element Sum: 1 + 2 + 3 + 4 = 10
Digit Sum: 1 + 2 + 3 + 4 = 10
Absolute Difference: | 10 - 10 | = 0
Example 4
Input: @ints = (236, 416, 336, 350)
Output: 1296
Task 2: Multiply by Two
Submitted by: Mohammad Sajid Anwar
You are given an array of integers, @ints
and an integer $start
..
Write a script to do the followings:
a) Look for $start in the array @ints, if found multiply the number by 2
b) If not found stop the process otherwise repeat
In the end return the final value.
Example 1
Input: @ints = (5,3,6,1,12) and $start = 3
Output: 24
Step 1: 3 is in the array so 3 x 2 = 6
Step 2: 6 is in the array so 6 x 2 = 12
Step 3: 12 is in the array so 12 x 2 = 24
24 is not found in the array so return 24.
Example 2
Input: @ints = (1,2,4,3) and $start = 1
Output: 8
Step 1: 1 is in the array so 1 x 2 = 2
Step 2: 2 is in the array so 2 x 2 = 4
Step 3: 4 is in the array so 4 x 2 = 8
8 is not found in the array so return 8.
Example 3
Input: @ints = (5,6,7) and $start = 2
Output: 2
2 is not found in the array so return 2.
Last date to submit the solution 23:59 (UK Time) Sunday 24th March 2024.