Robbie Hatley's Solutions To The Weekly Challenge #280
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-07-28 through 2024-08-03 is #280. Its tasks are as follows: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Task 280-1: Twice Appearance Submitted by: Mohammad Sajid Anwar Given a string containing lowercase English letters only, write a script to print the first letter to appear a second time. [Note, Robbie Hatley, 2024-07-29: The original version said "first letter that appears twice", but the examples contradict that, so I edited it to read "a second time" instead of "twice", in order to jibe with the examples. For example, in "acbddbca" the first letter to appear twice is "a", but the first letter to appear a second time is "d". The difference is that "twice" is not positio...