Perl Weekly Challenge - 018

Sunday, Jul 21, 2019| Tags: Perl5, Perl6


HEADLINES



Let me announce the winner of Perl Weekly Challenge - 017 and the name is Yozen Hernandez. Many congratulations Yozen, you should soon hear from Perl Careers about your reward. Please do let us know how you feel about it. 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.



RECAP



Here is the recap of last week challenge.



REVIEW



Please checkout the Perl Weekly Challenge - 016 review by Kian-Meng Ang.



CHART



Please take a look at the charts showing interesting data.

I would like to thank everyone for their valuable suggestions. Please do share your experience with us. Good luck for the weekly challenge and enjoy.



NEW MEMBERS



Randy Lauen from Illinois, USA. He has been web developers for about 15 years. Check out current team members.



Task #1



Write a script that takes 2 or more strings as command line parameters and print the longest common substring. For example, the longest common substring of the strings “ABABC”, “BABCA” and “ABCBA” is string “ABC” of length 3. Other common substrings are “A”, “AB”, “B”, “BA”, “BC” and “C”. Please check this wiki page for details.



Task #2



Write a script to implement Priority Queue. It is like regular queue except each element has a priority associated with it. In a priority queue, an element with high priority is served before an element with low priority. Please check this wiki page for more informations. It should serve the following operations:

1) is_empty: check whether the queue has no elements.

2) insert_with_priority: add an element to the queue with an associated priority.

3) pull_highest_priority_element: remove the element from the queue that has the highest priority, and return it. If two elements have the same priority, then return element added first.



Task #3



Write a script to use BabelNet API. To obtain an API key you have to register an account on BabelNet. At the end of the registration process, you will receive an email with your API key. For more information about API, please visit page. The API task is optional but we would love to see your solution.



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



SO WHAT DO YOU THINK ?

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

Contact with me