The Weekly Challenge - 295

Monday, Nov 11, 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: Word Break

10. TASK #2: Jump Game


HEADLINES


Welcome to the Week #295 of The Weekly Challenge.

Welcome back, Jorg Sommrey and thanks for sharing solutions to Week #290, Week #291, Week #292, Week #293 and Week #294. It is always pleasure to see contributions to past challenges.

Last week, I proposed an idea for Advent Calendar 2024 and requested for suggestions. I received few but none seems interested in video style advent calendar. I am still looking for new ideas for this year advent calendar. Please keep sharing your ideas to perlweeklychallenge@yahoo.com.


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

  Week      Perl       Raku       Blog   
   290       60       27       30   
   291       52       25       15   
   292       35       13       14   
   293       57       26       15   
   294       37       21       10   

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

  Week      Guests       Contributions       Languages   
   290       16       74       22   
   291       12       44       18   
   292       7       23       14   
   293       11       50       16   
   294       10       46       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     (3032)
 2. Rust       (788)
 3. Ruby       (743)
 4. Haskell    (719)
 5. Lua        (660)
 6. C          (589)
 7. C++        (561)
 8. JavaScript (506)
 9. Go         (424)
10. BQN        (385)

Blogs with Creative Title


1. Next Consecutive by Arne Sommer.

2. Consecutive Permutations by Jorg Sommrey.

3. Consecutive Sequences of Permutations, Anyone? by Matthias Muth.

4. No music, only numbers by Packy Anderson.

5. Sequential permutations by Peter Campbell Smith.

6. Permutationally Consecutive by Roger Bell_West.


GitHub Repository Stats


1. Commits: 41,097 (+82)

2. Pull Requests: 11,132 (+25)

3. Contributors: 253

4. Fork: 320

5. Stars: 177



With start of Week #268, we have a new sponsor Lance Wicks for the entire year 2024. 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 - 294 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 #294.

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


Task 1: Word Break

Submitted by: Mohammad Sajid Anwar

You are given a string, $str, and list of words, @words.

Write a script to return true or false whether the given string can be segmented into a space separated sequence of one or more words from the given list.

Example 1

Input: $str = 'weeklychallenge', @words = ("challenge", "weekly")
Output: true

Example 2

Input: $str = "perlrakuperl", @words = ("raku", "perl")
Output: true

Example 3

Input: $str = "sonsanddaughters", @words = ("sons", "sand", "daughters")
Output: false

Task 2: Jump Game

Submitted by: Mohammad Sajid Anwar

You are given an array of integers, @ints.

Write a script to find the minimum number of jumps to reach the last element. $ints[$i] represents the maximum length of a forward jump from the index $i. In case last element is unreachable then return -1.

Example 1

Input: @ints = (2, 3, 1, 1, 4)
Output: 2

Jump 1 step from index 0 then 3 steps from index 1 to the last element.

Example 2

Input: @ints = (2, 3, 0, 4)
Output: 2

Example 3

Input: @ints = (2, 0, 0, 4)
Output: -1


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


SO WHAT DO YOU THINK ?

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

Contact with me