Robbie Hatley's Solutions To The Weekly Challenge #275
For those not familiar with "The Weekly Challenge", it is a weekly programming puzzle with two parts, cycling every Sunday. You can find it here: The Weekly Challenge The Weekly Challenge for the week of 2024-06-23 through 2024-06-29 is #275. Its tasks are as follows: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Task 275-1: Broken Keys Submitted by: Mohammad Sajid Anwar You are given a sentence $sentence and list of broken keys @keys. Write a script to find out how many words can be typed fully. Example 1: Input: $sentence = "Perl Weekly Challenge", @keys = ('l', 'a') Output: 0 Example 2: Input: $sentence = "Perl and Raku", @keys = ('a') Output: 1 Only Perl since the other word two words contain 'a' and can't be typed fully. Example 3: Input: $sentence = "Well done Team PWC", @keys = ('l', 'o') Output: 2 Example 4: Input: $sentence = "The joys of polyglottism&