The Weekly Challenge - 035

Sunday, Nov 17, 2019| Tags: Perl, Raku


HEADLINES



With great pleasure, we announce Burkhard Nickels as the winner of “The Weekly Challenge - 034”. Congratulations Burkhard, you should soon hear from Perl Careers about your reward. For rest of the participants, I would say Good Luck for next time. Keep sending in your solutions and share your knowledge with each other.

A gentle reminder to all members, please send us your nominated solutions for the Advent Calendar 2019. It would be a great help. We would then select the top 24 most popular solutions for the Advent Calendar 2019. You could email (perlweeklychallenge@yahoo.com) us or PM on twitter.

After going through the last week solutions by Burkhard Nickels, I have decided to include his 2 solutions to the Advent Calendar 2019. So we now have 22 places to fill up.



RECAP



Here is the recap of last week “The Weekly Challenge - 034”.



PERL REVIEW



Please checkout Perl solutions review of the “The Weekly Challenge - 033” by Kian-Meng Ang.

If you missed any past reviews then please checkout the collection.



RAKU REVIEW



Please checkout Raku solutions review of the “The Weekly Challenge - 033” by Laurent Rosenfeld.

Laurent also reviewed Task #2 of “The Weekly Challenge - 011”.

If you missed any past reviews then please checkout 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



No new member joined last week.

Check out current team members.

Please find out How to contribute?, if you have any doubts.



GUESTS



Adam Russell shared C++ solutions for “The Weekly Challenge - 034”.

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



TASK #1

Contributed by Paul Johnson


Write a program to encode text into binary encoded morse code.


Pay attention to any changes which might need to be made to the text to make it valid morse code.

Morse code consists of dots, dashes and gaps. It can be encoded in binary in the following fashion:

dot: 1
dash: 111
intra-character gap: 0
character gap: 000
word gap: 0000000

An intra-character gap is inserted between the dots and dashes in a character.



TASK #2

Contributed by Paul Johnson


Write a program to decode binary morse code.


Consider how it might be possible to recover from badly formed morse code.

a) by splitting the morse code on gaps
b) without looking further than one digit ahead


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



SO WHAT DO YOU THINK ?

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

Contact with me