The Weekly Challenge - 293

Monday, Oct 28, 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: Similar Dominos

10. TASK #2: Boomerang


HEADLINES


Welcome to the Week #293 of The Weekly Challenge.

It was a bit rough week for me as I am trying to get back to my usual routine. Also I was a bit busy with London Perl Workshop 2024. I was pleasantly surprised to meet fellow team member, Arne Sommer, after a long time. Last time we met was at conference in Riga many years ago. I noticed another name, Santiago Leyva in the list but didn’t get to say hi unfortunately. If anyone interested in my talk then you can grab the slides as pdf.

Please keep sharing the knowledge every week and don’t forget to have fun too.


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

  Week      Perl       Raku       Blog   
   288       44       18       17   
   289       66       28       31   
   290       62       27       31   
   291       54       25       16   
   292       37       13       15   

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

  Week      Guests       Contributions       Languages   
   288       10       46       16   
   289       18       72       24   
   290       16       74       22   
   291       12       44       18   
   292       8       27       14   

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     (3017)
 2. Rust       (778)
 3. Ruby       (737)
 4. Haskell    (715)
 5. Lua        (652)
 6. C          (589)
 7. C++        (555)
 8. JavaScript (502)
 9. Go         (426)
10. BQN        (382)

Blogs with Creative Title


1. The Largest Zuma by Arne Sommer.

2. Comes A Time by Dave Jacoby.

3. Twice the Largest - Once the Zuma by Matthias Muth.

4. One Challenge, Twice Large by Packy Anderson.

5. Find the biggest and clear the balls by Peter Campbell Smith.

6. Largest Zuma by Roger Bell_West.


GitHub Repository Stats


1. Commits: 40,914 (+66)

2. Pull Requests: 11,067 (+26)

3. Contributors: 253

4. Fork: 320

5. Stars: 176



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

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


Task 1: Similar Dominos

Submitted by: Mohammad Sajid Anwar

You are given a list of dominos, @dominos.

Write a script to return the number of dominoes that are similar to any other domino.

$dominos[i] = [a, b] and $dominos[j] = [c, d] are same if either (a = c and b = d) or (a = d and b = c).

Example 1

Input: @dominos = ([1, 3], [3, 1], [2, 4], [6, 8])
Output: 2

Similar Dominos: $dominos[0], $dominos[1]

Example 2

Input: @dominos = ([1, 2], [2, 1], [1, 1], [1, 2], [2, 2])
Output: 3

Similar Dominos: $dominos[0], $dominos[1], $dominos[3]

Task 2: Boomerang

Submitted by: Mohammad Sajid Anwar

You are given an array of points, (x, y).

Write a script to find out if the given points are a boomerang.

A boomerang is a set of three points that are all distinct and not in a straight line.

Example 1

Input: @points = ( [1, 1], [2, 3], [3,2] )
Output: true

Example 2

Input: @points = ( [1, 1], [2, 2], [3, 3] )
Output: false

Example 3

Input: @points = ( [1, 1], [1, 2], [2, 3] )
Output: true

Example 4

Input: @points = ( [1, 1], [1, 2], [1, 3] )
Output: false

Example 5

Input: @points = ( [1, 1], [2, 1], [3, 1] )
Output: false

Example 6

Input: @points = ( [0, 0], [2, 3], [4, 5] )
Output: true


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


SO WHAT DO YOU THINK ?

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

Contact with me