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.
Here is the recap of last week challenge.
Please checkout the Perl Weekly Challenge - 016 review by Kian-Meng Ang.
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.
Randy Lauen from Illinois, USA. He has been web developers for about 15 years. Check out current team members.
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.
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:
- is_empty: check whether the queue has no elements.
- insert_with_priority: add an element to the queue with an associated priority.
- 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.
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.