The Weekly Challenge - 114

Monday, May 24, 2021| 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: Next Palindrome Number

10. TASK #2: Higher Integer Set Bits


HEADLINES


Let us all welcome, Christian Jaeger, to the Team PWC. In the first week itself, we have received solutions in Perl and Haskell. And not only that we even had bonus, blog as well. Thank you, Christian, for introducing FunctionalPerl.

We had another surprise from our regular team members, Flavio Poletti. He shared Raku solutions for the first time. To me, it is an achievement, that a regular Perl contributor becomes Raku contributor. Similarly in the past, Arne Sommer, who used to contribute only Raku solutions then suddenly one week he started contributing Perl solutions too. Thank you Team PWC for your contributions.


Let us share some interesting stats from the GitHub repository.

1. Commits: 16,903 (+157)

2. Pull Requests: 4,126 (+36)

3. Contributors: 166 (+1)

4. Fork: 209 (+2)

5. Stars: 91


Last but not least, I would like to thank each and every member for their support and encouragement.



Our solo sponsor Pete Sergeant has been a great support to keep us motivated. We are lucky that he agreed to continue the journey with us in the year 2021. I would like to personally thank Pete and his entire team for their generosity. It would be great if we could add few more to sponsor the prize money so that we could go back and declare weekly champions as we have done in the past. I hope and wish this will become possible in 2021. The amount doesn’t have to be huge. However, it would be nice to show off bunch of supporters. If an organisation comes forward and supports us then that would be the ultimate achievement.


RECAP


Quick recap of “The Weekly Challenge - 113” by Mohammad S Anwar.


PERL REVIEW


Please check out Perl solutions review of the “Perl Weekly Challenge - 111” by Colin Crain.

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


Christian Jaeger, an experienced Perl hacker from UK, 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 checkout the guest contributions for the Week #113.

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


TASK #1 › Next Palindrome Number

Submitted by: Mohammad S Anwar

You are given a positive integer $N.

Write a script to find out the next Palindrome Number higher than the given integer $N.

Example

Input: $N = 1234
Output: 1331

Input: $N = 999
Output: 1001

TASK #2 › Higher Integer Set Bits

Submitted by: Mohammad S Anwar

You are given a positive integer $N.

Write a script to find the next higher integer having the same number of 1 bits in binary representation as $N.

Example

Input: $N = 3
Output: 5

Binary representation of $N is 011. There are two 1 bits. So the next higher integer is 5 having the same the number of 1 bits i.e. 101.

Input: $N = 12
Output: 17

Binary representation of $N is 1100. There are two 1 bits. So the next higher integer is 17 having the same number of 1 bits i.e. 10001.


Last date to submit the solution 23:59 (UK Time) Sunday 30th May 2021.


SO WHAT DO YOU THINK ?

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

Contact with me