TABLE OF CONTENTS
1. HEADLINES
2. SPONSOR
3. RECAP
4. PERL REVIEW
5. RAKU REVIEW
6. CHART
7. NEW MEMBERS
8. GUESTS
9. TASK #1: Increment Decrement
10. TASK #2: Tax Amount
HEADLINES
Welcome to the Week #323
of The Weekly Challenge
.
Welcome aboard, Yitzchak Scott-Thoennes
and thanks for your first contributions in Perl and Python.
We now have 324
members and 28
guests in Team PWC
.
With some late contributions, Week #322
, became the best week of the year 2025
so far.
Happy Hacking!!
Last 5 weeks
mainstream contribution stats. Thank you Team PWC
for your support and encouragements.
Week |
Perl |
Raku |
Blog |
318 |
44 | 23 | 19 |
319 |
38 | 20 | 16 |
320 |
46 | 26 | 18 |
321 |
44 | 26 | 27 |
322 |
44 | 24 | 25 |
Last 5 weeks
guest contribution stats. Thank you each and every guest contributors for your time and efforts.
Week |
Guests |
Contributions |
Languages |
318 |
10 | 48 | 16 |
319 |
14 | 58 | 22 |
320 |
14 | 62 | 23 |
321 |
13 | 61 | 23 |
322 |
12 | 52 | 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 (3386)
2. Rust (910)
3. Ruby (799)
4. Haskell (777)
5. Lua (724)
6. C++ (617)
7. C (590)
8. JavaScript (562)
9. Go (486)
10. BQN (440)
Blogs with Creative Title
1. Ordered Format Array by Adam Russell.
2. Stringed Array by Arne Sommer.
3. String Format by Bob Lied.
4. Dashing This Off by Dave Jacoby.
5. Group Ranking by Jorg Sommrey.
6. Splitting and Sorting by Luca Ferrari.
7. Ranking Code, Ranking Numbers by Matthias Muth.
8. The array is rank, but the string is formatted by Packy Anderson.
9. More strings and arrays by Peter Campbell Smith.
10. The Strings Are Rank by Roger Bell_West.
11. Strings and Arrays by Simon Green.
GitHub Repository Stats
1. Commits: 43,653 (+106
)
2. Pull Requests: 12,064 (+38
)
3. Contributors: 260 (+1
)
4. Fork: 327 (+1
)
5. Stars: 191 (+2
)
SPONSOR
With start of Week #268
, we have a new sponsor Lance Wicks
until the end of year 2025
. Having said we are looking for more sponsors so that we can go back to weekly 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 - 322 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
Yitzchak Scott-Thoennes, an expert 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 #322.
Please find past solutions by respected guests. Please share your creative solutions in other languages.
Task 1: Increment Decrement
Submitted by: Mohammad Sajid Anwar
You are given a list of operations.
Write a script to return the final value after performing the given operations in order. The initial value is always 0.
Possible Operations:
++x or x++: increment by 1
--x or x--: decrement by 1
Example 1
Input: @operations = ("--x", "x++", "x++")
Output: 1
Operation "--x" => 0 - 1 => -1
Operation "x++" => -1 + 1 => 0
Operation "x++" => 0 + 1 => 1
Example 2
Input: @operations = ("x++", "++x", "x++")
Output: 3
Example 3
Input: @operations = ("x++", "++x", "--x", "x--")
Output: 0
Operation "x++" => 0 + 1 => 1
Operation "++x" => 1 + 1 => 2
Operation "--x" => 2 - 1 => 1
Operation "x--" => 1 - 1 => 0
Task 2: Tax Amount
Submitted by: Mohammad Sajid Anwar
You are given an income amount and tax brackets.
Write a script to calculate the total tax amount.
Example 1
Input: $income = 10, @tax = ([3, 50], [7, 10], [12,25])
Output: 2.65
1st tax bracket upto 3, tax is 50%.
2nd tax bracket upto 7, tax is 10%.
3rd tax bracket upto 12, tax is 25%.
Total Tax => (3 * 50/100) + (4 * 10/100) + (3 * 25/100)
=> 1.50 + 0.40 + 0.75
=> 2.65
Example 2
Input: $income = 2, @tax = ([1, 0], [4, 25], [5,50])
Output: 0.25
Total Tax => (1 * 0/100) + (1 * 25/100)
=> 0 + 0.25
=> 0.25
Example 3
Input: $income = 0, @tax = ([2, 50])
Output: 0
Last date to submit the solution 23:59 (UK Time) Sunday 1st June 2025
.