The Weekly Challenge - 264

Monday, Apr 8, 2024| 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: Greatest English Letter

10. TASK #2: Target Array


HEADLINES


Welcome to the Week #264 of The Weekly Challenge.

Thank you, Andrew Shitov, for reviewing Raku solutions for the Week #262. There was a time when we used to have weekly reviews of both Perl and Raku solutions. It was very popular among the Team PWC members. Unfortunately it is discontinued for sometime now. I am happy that Andrew found spare time last week for us and shared his views. I am not sure if this would be regular from now. I would be more than happy even if we get after break, it doesn’t have to be every week.

Welcome back, Robert DiCicco after the break and thanks for sharing solution in Perl.

Last week, Asher Harvey-Smith, introduced a new programming language Hy and shared his contribution.

I would also like to thank, Archar Gelod, for taking up past challenges and sharing his creations in Nim. For all Nim fans, you must checkout his solutions. I am expecting it be part of Top #10 guest languages soon.

Please keep sharing and spreading the word.



Last 5 weeks mainstream contribution stats. Thank you Team PWC for your support and encouragements.

  Week      Perl       Raku       Blog   
   259       41       19       22   
   260       50       28       27   
   261       55       32       25   
   262       59       32       25   
   263       61       34       28   

Last 5 weeks guest contribution stats. Thank you each and every guest contributors for your time and efforts.

  Week      Guests       Contributions       Languages   
   259       13       44       17   
   260       14       56       17   
   261       18       79       24   
   262       18       80       24   
   263       19       79       23   

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     (2403)
 2. Ruby       (670)
 3. Haskell    (650)
 4. Rust       (597)
 5. Lua        (590)
 6. C          (525)
 7. C++        (496)
 8. JavaScript (389)
 9. Go         (349)
10. BQN        (329)

Blogs with Creative Title


1. Target Merge by Arne Sommer.

2. Don’t Sort It, Be Happy by Bob Lied.

3. Arrayed Against Me by Dave Jacoby.

4. Which Witch? by Jorg Sommrey.

5. iterating and filtering arrays by Luca Ferrari.

6. Indexes and Items by Matthias Muth.

7. Merge the Target Index Items by Packy Anderson.

8. Find the target and merge the inventory by Peter Campbell Smith.

9. Targets Merge by Roger Bell_West.

10. Finding the target by Simon Green.


GitHub Repository Stats


1. Commits: 37,504 (+119)

2. Pull Requests: 9,876 (+46)

3. Contributors: 243

4. Fork: 306

5. Stars: 170



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 - 263 by Mohammad Sajid Anwar.


PERL REVIEW


If you missed any past reviews then please check out the collection.


RAKU REVIEW


Please checkout Raku solutions review of The Weekly Challenge - 263 by Andrew Shitov.

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

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


Task 1: Greatest English Letter

Submitted by: Mohammad Sajid Anwar

You are given a string, $str, made up of only alphabetic characters [a..zA..Z].

Write a script to return the greatest english letter in the given string.

A letter is greatest if it occurs as lower and upper case. Also letter ‘b’ is greater than ‘a’ if ‘b’ appears after ‘a’ in the English alphabet.

Example 1

Input: $str = 'PeRlwEeKLy'
Output: L

There are two letters E and L that appears as lower and upper.
The letter L appears after E, so the L is the greatest english letter.

Example 2

Input: $str = 'ChaLlenge'
Output: L

Example 3

Input: $str = 'The'
Output: ''

Task 2: Target Array

Submitted by: Mohammad Sajid Anwar

You are given two arrays of integers, @source and @indices. The @indices can only contains integers 0 <= i < size of @source.

Write a script to create target array by insert at index $indices[i] the value $source[i].

Example 1

Input: @source  = (0, 1, 2, 3, 4)
       @indices = (0, 1, 2, 2, 1)
Output: (0, 4, 1, 3, 2)

@source  @indices  @target
0        0         (0)
1        1         (0, 1)
2        2         (0, 1, 2)
3        2         (0, 1, 3, 2)
4        1         (0, 4, 1, 3, 2)

Example 2

Input: @source  = (1, 2, 3, 4, 0)
       @indices = (0, 1, 2, 3, 0)
Output: (0, 1, 2, 3, 4)

@source  @indices  @target
1        0         (1)
2        1         (1, 2)
3        2         (1, 2, 3)
4        3         (1, 2, 3, 4)
0        0         (0, 1, 2, 3, 4)

Example 3

Input: @source  = (1)
       @indices = (0)
Output: (1)


Last date to submit the solution 23:59 (UK Time) Sunday 14th April 2024.


SO WHAT DO YOU THINK ?

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

Contact with me